pub struct PasswordEntry {
pub service: String,
pub username: Option<String>,
/* private fields */
}Fields§
§service: String§username: Option<String>Implementations§
Source§impl PasswordEntry
impl PasswordEntry
pub fn new( service: String, username: Option<String>, password: String, ) -> PasswordEntry
pub fn print_password<W: Write>( &self, writer: &mut W, message_type: Option<MessageType>, )
pub fn copy_password(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for PasswordEntry
impl Clone for PasswordEntry
Source§fn clone(&self) -> PasswordEntry
fn clone(&self) -> PasswordEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PasswordEntry
impl Debug for PasswordEntry
Source§impl<'de> Deserialize<'de> for PasswordEntry
impl<'de> Deserialize<'de> for PasswordEntry
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 PasswordEntry
impl PartialEq for PasswordEntry
Source§impl Serialize for PasswordEntry
impl Serialize for PasswordEntry
impl StructuralPartialEq for PasswordEntry
Auto Trait Implementations§
impl Freeze for PasswordEntry
impl RefUnwindSafe for PasswordEntry
impl Send for PasswordEntry
impl Sync for PasswordEntry
impl Unpin for PasswordEntry
impl UnwindSafe for PasswordEntry
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