[][src]Struct pwnage::HIBP

pub struct HIBP {
    pub api_key: String,
    pub user_agent: String,
}

Fields

api_key: Stringuser_agent: String

Methods

impl HIBP[src]

pub fn breached_account(
    self,
    account: &str
) -> Result<Vec<BreachedAccount>, HIBPError>
[src]

pub fn breached_account_full(
    self,
    account: &str
) -> Result<Vec<Breach>, HIBPError>
[src]

pub fn breached_account_by_domain(
    self,
    account: &str,
    domain: &str
) -> Result<Vec<BreachedAccount>, HIBPError>
[src]

pub fn breached_account_by_domain_full(
    self,
    account: &str,
    domain: &str
) -> Result<Vec<Breach>, HIBPError>
[src]

impl HIBP[src]

pub fn breaches(self) -> Result<Vec<Breach>, HIBPError>[src]

pub fn breach(self, name: &str) -> Result<Vec<Breach>, HIBPError>[src]

pub fn breaches_by_domain(self, domain: &str) -> Result<Vec<Breach>, HIBPError>[src]

impl HIBP[src]

pub fn new(api_key: String, user_agent: String) -> HIBP[src]

impl HIBP[src]

impl HIBP[src]

pub fn paste_account(
    self,
    account: &str
) -> Result<Vec<PasteAccount>, HIBPError>
[src]

impl HIBP[src]

pub fn pwned_passwords(self, password: &str) -> Result<PwnedPassword, HIBPError>[src]

Auto Trait Implementations

impl Unpin for HIBP

impl Sync for HIBP

impl Send for HIBP

impl UnwindSafe for HIBP

impl RefUnwindSafe for HIBP

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self