pub trait CertificateAggregatorRequest: Send + Sync {
// Required methods
fn list_latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<MithrilCertificateListItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = MithrilResult<Option<MithrilCertificate>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Define the requests against an aggregator related to Mithril certificate.
Required Methods§
Sourcefn list_latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<MithrilCertificateListItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_latest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MithrilResult<Vec<MithrilCertificateListItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the list of latest Mithril Certificates from the aggregator.
Sourcefn get_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = MithrilResult<Option<MithrilCertificate>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = MithrilResult<Option<MithrilCertificate>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a Mithril Certificate for a given hash from the aggregator.