pub trait ReviewProvider:
Debug
+ Send
+ Sync {
// Required methods
fn comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn approve<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn request_changes<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn submit_review<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
event: ReviewState,
body: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Required Methods§
Sourcefn comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn approve<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn approve<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn request_changes<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request_changes<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn submit_review<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
event: ReviewState,
body: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit_review<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
event: ReviewState,
body: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".