Trait sda_protocol::SdaAggregationService
[−]
[src]
pub trait SdaAggregationService: SdaBaseService { fn list_aggregations(&self,
caller: &Agent,
filter: Option<&str>,
recipient: Option<&AgentId>)
-> SdaResult<Vec<AggregationId>>; fn get_aggregation(&self,
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Aggregation>>; fn get_committee(&self,
caller: &Agent,
owner: &AggregationId)
-> SdaResult<Option<Committee>>; }
Methods used mainly for discovering aggregation objects.
Required Methods
fn list_aggregations(&self,
caller: &Agent,
filter: Option<&str>,
recipient: Option<&AgentId>)
-> SdaResult<Vec<AggregationId>>
caller: &Agent,
filter: Option<&str>,
recipient: Option<&AgentId>)
-> SdaResult<Vec<AggregationId>>
Search for aggregations optionally filtering by title substring and/or recipient.
fn get_aggregation(&self,
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Aggregation>>
caller: &Agent,
aggregation: &AggregationId)
-> SdaResult<Option<Aggregation>>
Retrieve an aggregation and its description.
fn get_committee(&self,
caller: &Agent,
owner: &AggregationId)
-> SdaResult<Option<Committee>>
caller: &Agent,
owner: &AggregationId)
-> SdaResult<Option<Committee>>
Retrieve the associated committee.