[][src]Struct lastpass::LoginKey

pub struct LoginKey(_);

A hex-encoded hash of the username and password.

Methods

impl LoginKey[src]

pub const LEN: usize[src]

pub fn calculate(username: &str, password: &str, iterations: usize) -> Self[src]

Calculate a new LoginKey.

pub fn as_hex(&self) -> &str[src]

Get the key's hex-encoded representation.

Trait Implementations

impl AsRef<[u8]> for LoginKey[src]

impl Clone for LoginKey[src]

impl Copy for LoginKey[src]

impl Debug for LoginKey[src]

impl Deref for LoginKey[src]

type Target = [u8]

The resulting type after dereferencing.

impl PartialEq<LoginKey> for LoginKey[src]

impl<T> PartialEq<T> for LoginKey where
    T: PartialEq<[u8]>, 
[src]

Auto Trait Implementations

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> ToHex for T where
    T: AsRef<[u8]>, 
[src]

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.