pub struct EncryptedLogin {
pub meta: LoginMeta,
pub fields: LoginFields,
pub sec_fields: String,
}
Expand description
A login stored in the database
Fields§
§meta: LoginMeta
§fields: LoginFields
§sec_fields: String
Implementations§
Source§impl EncryptedLogin
impl EncryptedLogin
pub fn guid(&self) -> Guid
pub fn guid_str(&self) -> &str
pub fn decrypt(self, encdec: &dyn EncryptorDecryptor) -> Result<Login>
pub fn decrypt_fields( &self, encdec: &dyn EncryptorDecryptor, ) -> Result<SecureLoginFields>
Trait Implementations§
Source§impl Clone for EncryptedLogin
impl Clone for EncryptedLogin
Source§fn clone(&self) -> EncryptedLogin
fn clone(&self) -> EncryptedLogin
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 EncryptedLogin
impl Debug for EncryptedLogin
Source§impl Default for EncryptedLogin
impl Default for EncryptedLogin
Source§fn default() -> EncryptedLogin
fn default() -> EncryptedLogin
Returns the “default value” for a type. Read more
Source§impl Hash for EncryptedLogin
impl Hash for EncryptedLogin
Source§impl PartialEq for EncryptedLogin
impl PartialEq for EncryptedLogin
impl Eq for EncryptedLogin
impl StructuralPartialEq for EncryptedLogin
Auto Trait Implementations§
impl Freeze for EncryptedLogin
impl RefUnwindSafe for EncryptedLogin
impl Send for EncryptedLogin
impl Sync for EncryptedLogin
impl Unpin for EncryptedLogin
impl UnwindSafe for EncryptedLogin
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<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
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