pub struct NewPassword {
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,
}
Expand description
To create a new password entry
Fields§
§site: String
§login: String
§lowercase: bool
§uppercase: bool
§symbols: bool
§digits: bool
§length: u8
§counter: u32
§version: u8
Trait Implementations§
Source§impl Debug for NewPassword
impl Debug for NewPassword
Source§impl<'de> Deserialize<'de> for NewPassword
impl<'de> Deserialize<'de> for NewPassword
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.
Auto Trait Implementations§
impl Freeze for NewPassword
impl RefUnwindSafe for NewPassword
impl Send for NewPassword
impl Sync for NewPassword
impl Unpin for NewPassword
impl UnwindSafe for NewPassword
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