[][src]Struct lastpass::Account

#[non_exhaustive]pub struct Account {
    pub id: Id,
    pub name: String,
    pub group: String,
    pub url: Url,
    pub note: String,
    pub note_type: String,
    pub favourite: bool,
    pub username: String,
    pub password: String,
    pub password_protected: bool,
    pub encrypted_attachment_key: String,
    pub attachment_present: bool,
    pub last_touch: String,
    pub last_modified: String,
    pub attachments: Vec<Attachment>,
}

A single entry, typically a password or address.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
id: Idname: String

The account's name.

group: String

Which group the account is in (think of it like a directory).

url: Url

The URL associated with this account.

note: String

Any notes that may be attached.

note_type: Stringfavourite: bool

Did the user mark this Account as a favourite?

username: String

The associated username.

password: String

The associated password.

password_protected: bool

Should we prompt for the master password before showing details to the user?

encrypted_attachment_key: String

An encrypted copy of the key used to decode this Account's attachments.

attachment_present: bool

Does this account have any Attachments?

last_touch: Stringlast_modified: Stringattachments: Vec<Attachment>

Files which may be attached to this Account.

Methods

impl Account[src]

pub fn attachment_key(
    &self,
    decryption_key: &DecryptionKey
) -> Result<DecryptionKey, DecryptionError>
[src]

Get the key used to work with this Account's attachments.

Trait Implementations

impl Clone for Account[src]

impl Debug for Account[src]

impl PartialEq<Account> for Account[src]

impl StructuralPartialEq for Account[src]

Auto Trait Implementations

impl RefUnwindSafe for Account

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,