pub struct Entry {
pub name: String,
pub url: String,
pub user: String,
pub pass: String,
pub desc: String,
pub meta: EntryMeta,
pub encrypted: bool,
}Expand description
Struct that defines a password entry.
Fields§
§name: StringThe name of the Entry
It is used as a label to distinguish among other Entries
url: StringA URL (optional)
user: StringThe username
pass: StringThe password
desc: StringA description of the Entry (Optional)
meta: EntryMetaMeta-data for the Entry
encrypted: boolWhether the Entry has encrypted elements (like password)
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn new(
name: String,
url: String,
user: String,
pass: String,
desc: String,
meta: EntryMeta,
) -> Entry
pub fn new( name: String, url: String, user: String, pass: String, desc: String, meta: EntryMeta, ) -> Entry
Creates a new Entry using the provided name, url, username, password and description
pub fn from_table(table: &Table) -> Result<Entry, RustKeylockError>
pub fn to_table(&self) -> Table
pub fn encrypted(&self, cryptor: &EntryPasswordCryptor) -> Entry
pub fn decrypted(&self, cryptor: &EntryPasswordCryptor) -> Entry
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.