pub trait SashikoApi: Send + Sync {
Show 13 methods
// Required methods
fn lists<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MailingList>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn patchsets<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<Paginated<Patchset>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn messages<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<Paginated<EmailMessage>, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn patch_detail<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<PatchsetDetail, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn patchset_summary<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<PatchsetDetail, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn message_detail<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<EmailMessage, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn review<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ReviewQuery,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn review_log<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ReviewQuery,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ServerStats, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats_timeline<'life0, 'async_trait>(
&'life0 self,
subsystem_id: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats_reviews<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn clear_cache(&self) { ... }
}Expand description
Read-only access to a single Sashiko instance.
All methods are async and return Result<T, ApiError>.
The trait is object-safe (via async_trait) to support
Arc<dyn SashikoApi> in RemoteManager.
Required Methods§
Sourcefn lists<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MailingList>, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn lists<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MailingList>, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List tracked mailing lists.
Sourcefn patchsets<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<Paginated<Patchset>, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patchsets<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<Paginated<Patchset>, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search/list patchsets with pagination.
Sourcefn messages<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<Paginated<EmailMessage>, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn messages<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListParams,
) -> Pin<Box<dyn Future<Output = Result<Paginated<EmailMessage>, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search/list messages with pagination.
Sourcefn patch_detail<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<PatchsetDetail, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patch_detail<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<PatchsetDetail, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Full patchset detail (patches, reviews, thread, baseline).
Sourcefn patchset_summary<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<PatchsetDetail, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patchset_summary<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<PatchsetDetail, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Patchset summary (lighter than patch_detail).
Sourcefn message_detail<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<EmailMessage, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn message_detail<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 PatchId,
) -> Pin<Box<dyn Future<Output = Result<EmailMessage, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Single message detail with thread.
Sourcefn review<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ReviewQuery,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn review<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ReviewQuery,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Review detail. One of id or patchset_id required.
Sourcefn review_log<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ReviewQuery,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn review_log<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ReviewQuery,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Review detail with logs.
Sourcefn stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ServerStats, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ServerStats, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Server status and counts.
Sourcefn stats_timeline<'life0, 'async_trait>(
&'life0 self,
subsystem_id: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stats_timeline<'life0, 'async_trait>(
&'life0 self,
subsystem_id: Option<i64>,
) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Timeline data per day, optionally filtered by subsystem.
Provided Methods§
Sourcefn clear_cache(&self)
fn clear_cache(&self)
Clear any cached responses. Default no-op; overridden by CachingClient.