Struct webauthn_rs_proto::options::User
source · pub struct User {
pub id: Base64UrlSafeData,
pub name: String,
pub display_name: String,
}Expand description
User Entity
Fields§
§id: Base64UrlSafeDataThe user’s id in base64 form. This MUST be a unique id, and must NOT contain personally identifying information, as this value can NEVER be changed. If in doubt, use a UUID.
name: StringA detailed name for the account, such as an email address. This value can change, so must not be used as a primary key.
display_name: StringThe user’s preferred name for display. This value can change, so must not be used as a primary key.
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
source§impl PartialEq for User
impl PartialEq for User
impl Eq for User
impl StructuralEq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
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