[][src]Struct rust_keylock::Entry

pub struct Entry {
    pub name: String,
    pub url: String,
    pub user: String,
    pub pass: String,
    pub desc: String,
    pub encrypted: bool,
}

Struct that defines a password entry.

Fields

name: String

The name of the Entry

It is used as a label to distinguish among other Entries

url: String

A URL (optional)

user: String

The username

pass: String

The password

desc: String

A description of the Entry (Optional)

encrypted: bool

Whether the Entry has encrypted elements (like password)

Methods

impl Entry[src]

pub fn new(
    name: String,
    url: String,
    user: String,
    pass: String,
    desc: String
) -> Entry
[src]

Creates a new Entry using the provided name, url, username, password and description

pub fn empty() -> Entry[src]

Creates an empty Entry

pub fn from_table(table: &Table) -> Result<Entry, RustKeylockError>[src]

pub fn to_table(&self) -> Table[src]

pub fn encrypted(&self, cryptor: &EntryPasswordCryptor) -> Entry[src]

pub fn decrypted(&self, cryptor: &EntryPasswordCryptor) -> Entry[src]

Trait Implementations

impl Eq for Entry[src]

impl PartialEq<Entry> for Entry[src]

impl Clone for Entry[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Entry[src]

Auto Trait Implementations

impl Send for Entry

impl Sync for Entry

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self