pub struct Identity {
pub provider_id: String,
pub external_id: String,
pub email: Option<String>,
pub username: Option<String>,
pub attributes: HashMap<String, String>,
}Expand description
A unified identity structure returned by all providers.
Fields§
§provider_id: StringThe provider identifier (e.g., “github”, “google”)
external_id: StringThe unique ID of the user within the provider’s system
email: Option<String>The user’s email address, if available and authorized
username: Option<String>The user’s username or display name, if available
attributes: HashMap<String, String>Additional provider-specific attributes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
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
Mutably borrows from an owned value. Read more