pub struct Passwords(/* private fields */);Implementations§
Source§impl Passwords
impl Passwords
pub fn new() -> Self
pub fn append(&mut self, new_password: PasswordEntry)
pub fn find( &self, service: String, username: Option<String>, ) -> Option<&PasswordEntry>
pub fn remove( &mut self, service: String, username: Option<String>, ) -> Option<PasswordEntry>
pub fn parse_passwords(raw_passwords: &str) -> Result<Passwords, Error>
pub fn print_all<W: Write>( &self, writer: &mut W, show_passwords: bool, message_type: Option<MessageType>, )
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Passwords
impl<'de> Deserialize<'de> for Passwords
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<Vec<PasswordEntry>> for Passwords
impl From<Vec<PasswordEntry>> for Passwords
Source§fn from(passwords: Vec<PasswordEntry>) -> Self
fn from(passwords: Vec<PasswordEntry>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Passwords
Auto Trait Implementations§
impl Freeze for Passwords
impl RefUnwindSafe for Passwords
impl Send for Passwords
impl Sync for Passwords
impl Unpin for Passwords
impl UnwindSafe for Passwords
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