pub struct UserInfo {
pub id: String,
pub login: String,
pub name: Option<String>,
pub is_admin: bool,
}Expand description
User information returned from the registry’s /auth/me endpoint.
Contains details about the authenticated user, used to confirm successful login and display user information.
Fields§
§id: StringUnique user identifier in the registry.
login: StringGitHub username (used for login).
name: Option<String>Display name (may differ from login).
is_admin: boolWhether the user has registry admin privileges.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserInfo
impl<'de> Deserialize<'de> for UserInfo
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 UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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