pub struct UserRecord {Show 28 fields
pub passkeys: Option<Vec<Passkey>>,
pub sqrl: Option<SqrlIdentity>,
pub web_push_subscriptions: Option<Vec<PushSubscription>>,
pub ntfy: Option<NtfySettings>,
pub notification_delivery_pending: Option<PendingNotification>,
pub notification_delivery_revision: Option<String>,
pub feature_preview: Option<bool>,
pub inactivity_clock_start: Option<String>,
pub login_disabled_reason: Option<String>,
pub anonymized: Option<bool>,
pub anonymized_at: Option<String>,
pub user_id: String,
pub username: Option<String>,
pub emails: Vec<UserEmail>,
pub profile: Box<UserProfile>,
pub is_admin: Option<bool>,
pub login_disabled: Option<bool>,
pub authentication_method: Option<String>,
pub created_at: Option<String>,
pub modified_at: Option<String>,
pub created_through_api: Option<bool>,
pub heartbeat: Option<String>,
pub last_connection_date: Option<String>,
pub session_data: Option<UserSessionData>,
pub import_usernames: Vec<String>,
pub orgs: Vec<UserOrganization>,
pub teams: Vec<UserTeam>,
pub boards: Vec<CurrentUserBoard>,
}Fields§
§passkeys: Option<Vec<Passkey>>§sqrl: Option<SqrlIdentity>§web_push_subscriptions: Option<Vec<PushSubscription>>§ntfy: Option<NtfySettings>§notification_delivery_pending: Option<PendingNotification>§notification_delivery_revision: Option<String>§feature_preview: Option<bool>§inactivity_clock_start: Option<String>§login_disabled_reason: Option<String>§anonymized: Option<bool>§anonymized_at: Option<String>§user_id: String§username: Option<String>§emails: Vec<UserEmail>§profile: Box<UserProfile>§is_admin: Option<bool>§login_disabled: Option<bool>§authentication_method: Option<String>§created_at: Option<String>§modified_at: Option<String>§created_through_api: Option<bool>§heartbeat: Option<String>§last_connection_date: Option<String>§session_data: Option<UserSessionData>§import_usernames: Vec<String>§orgs: Vec<UserOrganization>§teams: Vec<UserTeam>§boards: Vec<CurrentUserBoard>Implementations§
Source§impl UserRecord
impl UserRecord
pub fn user_id(&self) -> &str
pub fn username(&self) -> Option<&str>
pub fn full_name(&self) -> Option<&str>
pub const fn is_admin(&self) -> Option<bool>
pub fn emails(&self) -> &[UserEmail]
pub fn into_auth_parts( self, ) -> (String, Option<String>, Option<String>, Option<bool>, Vec<UserEmail>)
Trait Implementations§
Source§impl Clone for UserRecord
impl Clone for UserRecord
Source§impl Debug for UserRecord
impl Debug for UserRecord
Source§impl<'de> Deserialize<'de> for UserRecord
impl<'de> Deserialize<'de> for UserRecord
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 Eq for UserRecord
Source§impl PartialEq for UserRecord
impl PartialEq for UserRecord
impl StructuralPartialEq for UserRecord
Auto Trait Implementations§
impl Freeze for UserRecord
impl RefUnwindSafe for UserRecord
impl Send for UserRecord
impl Sync for UserRecord
impl Unpin for UserRecord
impl UnsafeUnpin for UserRecord
impl UnwindSafe for UserRecord
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