Trait PhishingDomainsApi

Source
pub trait PhishingDomainsApi: Send + Sync {
    // Required methods
    fn get_checksum<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error<GetChecksumError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_phishing_domains<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetPhishingDomainsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_checksum<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<String, Error<GetChecksumError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /phishing-domains/checksum

Source

fn get_phishing_domains<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetPhishingDomainsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /phishing-domains

Implementors§