pub struct UserView {Show 15 fields
pub id: String,
pub name: Option<String>,
pub email: Option<String>,
pub email_verified: bool,
pub image: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub username: Option<String>,
pub display_username: Option<String>,
pub two_factor_enabled: bool,
pub role: Option<String>,
pub banned: bool,
pub ban_reason: Option<String>,
pub ban_expires: Option<DateTime<Utc>>,
pub metadata: Value,
}Expand description
Public user response shape.
Fields§
§id: String§name: Option<String>§email: Option<String>§email_verified: bool§image: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§username: Option<String>§display_username: Option<String>§two_factor_enabled: bool§role: Option<String>§banned: bool§ban_reason: Option<String>§ban_expires: Option<DateTime<Utc>>§metadata: ValueTrait Implementations§
Source§impl AuthUser for UserView
impl AuthUser for UserView
fn id(&self) -> Cow<'_, str>
fn email(&self) -> Option<&str>
fn name(&self) -> Option<&str>
fn email_verified(&self) -> bool
fn image(&self) -> Option<&str>
fn created_at(&self) -> DateTime<Utc>
fn updated_at(&self) -> DateTime<Utc>
fn username(&self) -> Option<&str>
fn display_username(&self) -> Option<&str>
fn two_factor_enabled(&self) -> bool
fn role(&self) -> Option<&str>
fn banned(&self) -> bool
fn ban_reason(&self) -> Option<&str>
fn ban_expires(&self) -> Option<DateTime<Utc>>
fn metadata(&self) -> &Value
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
impl StructuralPartialEq for UserView
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