Struct logins::EncryptedLogin
source · pub struct EncryptedLogin {
pub record: RecordFields,
pub fields: LoginFields,
pub sec_fields: String,
}
Expand description
A login stored in the database
Fields§
§record: RecordFields
§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: &EncryptorDecryptor) -> Result<Login>
pub fn decrypt_fields( &self, encdec: &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
source§fn eq(&self, other: &EncryptedLogin) -> bool
fn eq(&self, other: &EncryptedLogin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<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