Trait boot_core::cosmos_modules::authz::query_server::Query
pub trait Query: 'static + Send + Sync {
fn grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGrantsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn granter_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranterGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranterGrantsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn grantee_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranteeGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranteeGrantsResponse>, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.
Required Methods
fn grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGrantsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGrantsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns list of Authorization, granted to the grantee by the granter.
fn granter_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranterGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranterGrantsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn granter_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranterGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranterGrantsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GranterGrants returns list of GrantAuthorization, granted by granter.
Since: cosmos-sdk 0.45.2
fn grantee_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranteeGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranteeGrantsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn grantee_grants<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryGranteeGrantsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<QueryGranteeGrantsResponse>, Status>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
GranteeGrants returns a list of GrantAuthorization by grantee.
Since: cosmos-sdk 0.45.2