pub struct TrustedProfile {
pub user_id: String,
pub username: String,
pub display_name: String,
pub pin_required: bool,
pub auto_login: bool,
}Expand description
A user a device is trusted for (P4-01), as that device sees them.
Fields§
§user_id: StringWhat ResumeProfile takes: UserSummary::user_id.
username: StringTo match the profile with one the device keeps by username.
display_name: StringWhat to show; the username when the user has no display name.
pin_required: boolThe user’s PIN is asked for on this device: a resumed session starts locked.
auto_login: boolOpen this profile at start, past “Who’s watching”. At most one per device.
Trait Implementations§
Source§impl Clone for TrustedProfile
impl Clone for TrustedProfile
Source§impl Debug for TrustedProfile
impl Debug for TrustedProfile
Source§impl<'de> Deserialize<'de> for TrustedProfile
impl<'de> Deserialize<'de> for TrustedProfile
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 TrustedProfile
Source§impl PartialEq for TrustedProfile
impl PartialEq for TrustedProfile
Source§impl Serialize for TrustedProfile
impl Serialize for TrustedProfile
impl StructuralPartialEq for TrustedProfile
Auto Trait Implementations§
impl Freeze for TrustedProfile
impl RefUnwindSafe for TrustedProfile
impl Send for TrustedProfile
impl Sync for TrustedProfile
impl Unpin for TrustedProfile
impl UnsafeUnpin for TrustedProfile
impl UnwindSafe for TrustedProfile
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