pub enum AccountProof {
Key {
key: String,
},
Oidc {
identity: OidcIdentity,
},
Session,
}Expand description
What the account’s own DID document offers a stranger as proof of being
it, beside the #atproto key this server signs its commits with.
Read off the stored account rather than the served document: the two are written from the same values, and a listing that re-fetched every document would make one read of a roster into one request per account.
Variants§
Key
A key credential: whoever signs with the private half is the account.
Oidc
An OpenID Connect credential: an ID token from the issuer carrying every claim listed, each with the value given.
Fields
identity: OidcIdentityThe issuer and the claims a token from it must carry.
Session
No credential record, so the account is reached only through a session this server issued.
Implementations§
Source§impl AccountProof
impl AccountProof
Sourcepub fn of(credentials: &[Credential]) -> Self
pub fn of(credentials: &[Credential]) -> Self
The first of credentials, a key before an identity, or Session
when there are none.
Trait Implementations§
Source§impl Clone for AccountProof
impl Clone for AccountProof
Source§fn clone(&self) -> AccountProof
fn clone(&self) -> AccountProof
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountProof
impl Debug for AccountProof
Source§impl<'de> Deserialize<'de> for AccountProof
impl<'de> Deserialize<'de> for AccountProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AccountProof
impl PartialEq for AccountProof
Source§fn eq(&self, other: &AccountProof) -> bool
fn eq(&self, other: &AccountProof) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountProof
impl Serialize for AccountProof
impl Eq for AccountProof
impl StructuralPartialEq for AccountProof
Auto Trait Implementations§
impl Freeze for AccountProof
impl RefUnwindSafe for AccountProof
impl Send for AccountProof
impl Sync for AccountProof
impl Unpin for AccountProof
impl UnsafeUnpin for AccountProof
impl UnwindSafe for AccountProof
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more