pub trait SiteApi {
// Required methods
fn get_site_config<'life0, 'life1, 'async_trait>(
&'life0 self,
section: &'life1 str,
) -> Pin<Box<dyn Future<Output = ApiResult<SiteConfig>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_captcha<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiResult<CaptchaResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_abuse_report<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CreateAbuseReportService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Site configuration API methods
Required Methods§
Sourcefn get_site_config<'life0, 'life1, 'async_trait>(
&'life0 self,
section: &'life1 str,
) -> Pin<Box<dyn Future<Output = ApiResult<SiteConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_site_config<'life0, 'life1, 'async_trait>(
&'life0 self,
section: &'life1 str,
) -> Pin<Box<dyn Future<Output = ApiResult<SiteConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get site configuration
Sourcefn get_captcha<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiResult<CaptchaResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_captcha<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiResult<CaptchaResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get captcha
Sourcefn create_abuse_report<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CreateAbuseReportService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_abuse_report<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CreateAbuseReportService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create abuse report
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".