pub struct Device {
pub verbose_name: String,
pub verbose_name_plural: String,
pub meta_model_name: String,
pub pk: String,
pub name: String,
pub type: String,
pub confirmed: bool,
pub created: String,
pub last_updated: String,
pub last_used: Option<String>,
pub extra_description: Option<String>,
pub external_id: Option<String>,
}Expand description
Device : Serializer for authenticator devices
Fields§
§verbose_name: StringReturn object’s verbose_name
verbose_name_plural: StringReturn object’s plural verbose_name
meta_model_name: StringReturn internal model name
pk: String§name: String§type: StringGet type of device
confirmed: bool§created: String§last_updated: String§last_used: Option<String>§extra_description: Option<String>Get extra description
external_id: Option<String>Get external Device ID
Implementations§
Source§impl Device
impl Device
Sourcepub fn new(
verbose_name: String,
verbose_name_plural: String,
meta_model_name: String,
pk: String,
name: String,
type: String,
confirmed: bool,
created: String,
last_updated: String,
last_used: Option<String>,
extra_description: Option<String>,
external_id: Option<String>,
) -> Device
pub fn new( verbose_name: String, verbose_name_plural: String, meta_model_name: String, pk: String, name: String, type: String, confirmed: bool, created: String, last_updated: String, last_used: Option<String>, extra_description: Option<String>, external_id: Option<String>, ) -> Device
Serializer for authenticator devices
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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 Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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