diff options
author | Vika <vika@fireburn.ru> | 2022-07-19 04:39:48 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-07-19 04:39:48 +0300 |
commit | a8f4690c11d31c901e3376308e50a54824f4d04f (patch) | |
tree | ae076cdb907a2002fe57d5653b94faae7334c919 /kittybox-rs/indieauth/src/scopes.rs | |
parent | 6fdb4c25c4557aa0b59b5c4ba348ecab502cb57e (diff) | |
download | kittybox-a8f4690c11d31c901e3376308e50a54824f4d04f.tar.zst |
kittybox-indieauth: improve docs and the Error type
`kittybox_indieauth::Error` now represents errors in the IndieAuth process itself. `IndieAuthError` got renamed to `ResourceErrorKind` to reflect errors that a resource server (i.e. IndieAuth consumer) might return to a client who somehow didn't authorize themselves properly.
Diffstat (limited to 'kittybox-rs/indieauth/src/scopes.rs')
-rw-r--r-- | kittybox-rs/indieauth/src/scopes.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kittybox-rs/indieauth/src/scopes.rs b/kittybox-rs/indieauth/src/scopes.rs index e803dca..18ebfbd 100644 --- a/kittybox-rs/indieauth/src/scopes.rs +++ b/kittybox-rs/indieauth/src/scopes.rs @@ -42,7 +42,8 @@ impl Scope { Scope::Custom(scope.to_string()) } } -// TODO consider relying on serde for these conversions + +// TODO consider relying on serde_variant for these conversions impl AsRef<str> for Scope { fn as_ref(&self) -> &str { use Scope::*; |