pub struct SmUser {
pub id: String,
pub current_account_id: Option<String>,
pub email: Option<String>,
pub product_type: Option<String>,
}Expand description
The authenticated user (GET /users/me), trimmed to what the bootstrap needs.
Fields§
§id: StringUser id (string in the API); parse via SmUser::user_account for the mint call.
current_account_id: Option<String>§email: Option<String>§product_type: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SmUser
impl<'de> Deserialize<'de> for SmUser
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 SmUser
impl RefUnwindSafe for SmUser
impl Send for SmUser
impl Sync for SmUser
impl Unpin for SmUser
impl UnsafeUnpin for SmUser
impl UnwindSafe for SmUser
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