Trait HibpApi

Source
pub trait HibpApi: Send + Sync {
    // Required method
    fn get<'a, 'life0, 'async_trait>(
        &'life0 self,
        username: Option<&'a str>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<GetError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get<'a, 'life0, 'async_trait>( &'life0 self, username: Option<&'a str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /hibp/breach

Implementors§