pub struct EntryMut<'a> { /* private fields */ }Expand description
A mutable reference to an Entry. Implements DerefMut to &mut Entry.
Implementations§
Methods from Deref<Target = Entry>§
Sourcepub fn get_otp(&self) -> Result<TOTP, TOTPError>
pub fn get_otp(&self) -> Result<TOTP, TOTPError>
Convenience method for getting a TOTP from this entry.
Sourcepub fn get(&self, key: &str) -> Option<&str>
pub fn get(&self, key: &str) -> Option<&str>
Get a field by name, taking care of unprotecting Protected values automatically
Sourcepub fn set(&mut self, key: impl Into<String>, value: Value<String>)
pub fn set(&mut self, key: impl Into<String>, value: Value<String>)
Set a field’s value by name
Sourcepub fn set_unprotected(
&mut self,
key: impl Into<String>,
value: impl Into<String>,
)
pub fn set_unprotected( &mut self, key: impl Into<String>, value: impl Into<String>, )
Set a field’s unprotected value by name
Sourcepub fn set_protected(
&mut self,
key: impl Into<String>,
value: impl Into<String>,
)
pub fn set_protected( &mut self, key: impl Into<String>, value: impl Into<String>, )
Set a field’s protected value by name
Sourcepub fn get_raw_otp_value(&self) -> Option<&str>
pub fn get_raw_otp_value(&self) -> Option<&str>
Convenience method for getting the raw value of the ‘otp’ field
Sourcepub fn get_title(&self) -> Option<&str>
pub fn get_title(&self) -> Option<&str>
Convenience method for getting the value of the ‘Title’ field
Sourcepub fn get_username(&self) -> Option<&str>
pub fn get_username(&self) -> Option<&str>
Convenience method for getting the value of the ‘UserName’ field
Sourcepub fn get_password(&self) -> Option<&str>
pub fn get_password(&self) -> Option<&str>
Convenience method for getting the value of the ‘Password’ field
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for EntryMut<'a>
impl<'a> Freeze for EntryMut<'a>
impl<'a> RefUnwindSafe for EntryMut<'a>
impl<'a> Send for EntryMut<'a>
impl<'a> Sync for EntryMut<'a>
impl<'a> Unpin for EntryMut<'a>
impl<'a> UnsafeUnpin for EntryMut<'a>
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