pub struct User {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: HashMap<String, Value>,
}Expand description
Core user type - matches OpenAPI schema
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: HashMap<String, Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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