Skip to main content

SashikoApi

Trait SashikoApi 

Source
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§

Source

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.

Source

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.

Source

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.

Source

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).

Source

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).

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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,

Review statistics by provider/model/status.

Source

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,

Tool usage statistics.

Provided Methods§

Source

fn clear_cache(&self)

Clear any cached responses. Default no-op; overridden by CachingClient.

Implementors§