Struct logins::SecureLoginFields
source · pub struct SecureLoginFields {
pub username: String,
pub password: String,
}
Expand description
LoginEntry fields that are stored encrypted
Fields§
§username: String
§password: String
Implementations§
source§impl SecureLoginFields
impl SecureLoginFields
pub fn encrypt(&self, encdec: &EncryptorDecryptor) -> Result<String>
pub fn decrypt(ciphertext: &str, encdec: &EncryptorDecryptor) -> Result<Self>
Trait Implementations§
source§impl Clone for SecureLoginFields
impl Clone for SecureLoginFields
source§fn clone(&self) -> SecureLoginFields
fn clone(&self) -> SecureLoginFields
Returns a copy 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 SecureLoginFields
impl Debug for SecureLoginFields
source§impl Default for SecureLoginFields
impl Default for SecureLoginFields
source§fn default() -> SecureLoginFields
fn default() -> SecureLoginFields
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecureLoginFields
impl<'de> Deserialize<'de> for SecureLoginFields
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 Hash for SecureLoginFields
impl Hash for SecureLoginFields
source§impl PartialEq for SecureLoginFields
impl PartialEq for SecureLoginFields
source§fn eq(&self, other: &SecureLoginFields) -> bool
fn eq(&self, other: &SecureLoginFields) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SecureLoginFields
impl Serialize for SecureLoginFields
source§impl ValidateAndFixup for SecureLoginFields
impl ValidateAndFixup for SecureLoginFields
impl Eq for SecureLoginFields
impl StructuralPartialEq for SecureLoginFields
Auto Trait Implementations§
impl Freeze for SecureLoginFields
impl RefUnwindSafe for SecureLoginFields
impl Send for SecureLoginFields
impl Sync for SecureLoginFields
impl Unpin for SecureLoginFields
impl UnwindSafe for SecureLoginFields
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<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more