pub struct CurrentUserResponse {
pub auth_type: String,
pub user: Option<User>,
pub service_token: Option<ServiceToken>,
}Expand description
Response containing current user or service token information.
Fields§
§auth_type: StringType of authentication (“user” or “service_token”).
user: Option<User>User information (if authenticated as user).
service_token: Option<ServiceToken>Service token information (if authenticated as service token).
Trait Implementations§
Source§impl Clone for CurrentUserResponse
impl Clone for CurrentUserResponse
Source§fn clone(&self) -> CurrentUserResponse
fn clone(&self) -> CurrentUserResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurrentUserResponse
impl Debug for CurrentUserResponse
Source§impl<'de> Deserialize<'de> for CurrentUserResponse
impl<'de> Deserialize<'de> for CurrentUserResponse
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 CurrentUserResponse
impl RefUnwindSafe for CurrentUserResponse
impl Send for CurrentUserResponse
impl Sync for CurrentUserResponse
impl Unpin for CurrentUserResponse
impl UnwindSafe for CurrentUserResponse
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