pub struct UserProfile {
pub sub: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub active: Option<bool>,
pub external_id: Option<String>,
pub atproto_did: Option<String>,
pub key_custody: Option<AccountKeyCustody>,
pub external_identities: Vec<ExternalIdentityBinding>,
}Expand description
User profile data (OIDC standard claims + SCIM-informed fields).
Fields§
§sub: Option<String>Stable subject identifier (UUID). Generated at registration, never changes.
name: Option<String>Display name (SCIM: displayName / OIDC: name).
email: Option<String>Email address (SCIM: emails[0].value / OIDC: email).
email_verified: Option<bool>Whether the email is verified (OIDC: email_verified).
active: Option<bool>Whether the user is active (SCIM: active). None defaults to true.
external_id: Option<String>External identity ID from upstream IdP (SCIM: externalId).
atproto_did: Option<String>The account’s mapped atproto DID (did:plc or host-form did:web), if
provisioned. PROVISIONING is tracked in #1124; the LOOKUP seam exists
here so the atproto OAuth profile can emit the mapped DID as sub (#1113 r5).
key_custody: Option<AccountKeyCustody>Account key custody mode. Absent only on records created before the hosted-account model gained an explicit custody discriminator.
external_identities: Vec<ExternalIdentityBinding>Zero or more external IdP bindings. Empty for vault self-custody signup.
Trait Implementations§
Source§impl Clone for UserProfile
impl Clone for UserProfile
Source§fn clone(&self) -> UserProfile
fn clone(&self) -> UserProfile
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 UserProfile
impl Debug for UserProfile
Source§impl Default for UserProfile
impl Default for UserProfile
Source§fn default() -> UserProfile
fn default() -> UserProfile
Source§impl<'de> Deserialize<'de> for UserProfile
impl<'de> Deserialize<'de> for UserProfile
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 From<UserProfile> for UserProfilePatch
impl From<UserProfile> for UserProfilePatch
Source§fn from(profile: UserProfile) -> Self
fn from(profile: UserProfile) -> Self
Auto Trait Implementations§
impl Freeze for UserProfile
impl RefUnwindSafe for UserProfile
impl Send for UserProfile
impl Sync for UserProfile
impl Unpin for UserProfile
impl UnsafeUnpin for UserProfile
impl UnwindSafe for UserProfile
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request