pub struct Password {
pub id: String,
pub site: String,
pub login: String,
pub lowercase: bool,
pub uppercase: bool,
pub symbols: bool,
pub digits: bool,
pub length: u8,
pub counter: u32,
pub version: u8,
pub created: DateTime<Utc>,
pub modified: DateTime<Utc>,
}
Expand description
A password item in the password list
Fields§
§id: String
§site: String
§login: String
§lowercase: bool
§uppercase: bool
§symbols: bool
§digits: bool
§length: u8
§counter: u32
§version: u8
§created: DateTime<Utc>
§modified: DateTime<Utc>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Password
The numbers field is deprecated and has been replaced by digits so depending on the
implementation the response may contain the first, the second or even both. We deserialize to
an intermediate structure with both fields and return the final structure with only the digits
field (which takes precedence over numbers).
impl<'de> Deserialize<'de> for Password
The numbers field is deprecated and has been replaced by digits so depending on the implementation the response may contain the first, the second or even both. We deserialize to an intermediate structure with both fields and return the final structure with only the digits field (which takes precedence over numbers).
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 From<NewPassword> for Password
Turns a NewPassword into a Password using empty string for id and current date for created and
modified fields
impl From<NewPassword> for Password
Turns a NewPassword into a Password using empty string for id and current date for created and modified fields
Source§fn from(new_password: NewPassword) -> Self
fn from(new_password: NewPassword) -> Self
Converts to this type from the input type.
Source§impl Ord for Password
impl Ord for Password
Source§impl PartialOrd for Password
impl PartialOrd for Password
impl Eq for Password
impl StructuralPartialEq for Password
Auto Trait Implementations§
impl Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.