pub struct UserView {
pub id: String,
pub email: String,
pub display_name: String,
pub role: String,
pub is_active: bool,
pub last_login_at: Option<DateTime<Utc>>,
}Expand description
Response shape used by login + bootstrap + me.
Fields§
§id: String§email: String§display_name: String§role: String§is_active: bool§last_login_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserView
impl<'de> Deserialize<'de> for UserView
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
Source§impl From<&StoredUser> for UserView
impl From<&StoredUser> for UserView
Source§fn from(u: &StoredUser) -> Self
fn from(u: &StoredUser) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserView
impl RefUnwindSafe for UserView
impl Send for UserView
impl Sync for UserView
impl Unpin for UserView
impl UnsafeUnpin for UserView
impl UnwindSafe for UserView
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