Struct cosmos_client::client::gov::GovModule
source · pub struct GovModule { /* private fields */ }Implementations§
source§impl GovModule
impl GovModule
pub fn new(rpc: Rc<HttpClient>) -> Self
pub async fn proposal( &self, proposal_id: u64 ) -> Result<QueryProposalResponse, CosmosClientError>
pub async fn proposals( &self, proposal_status: i32, voter: &str, depositor: &str, pagination: Option<PageRequest> ) -> Result<QueryProposalsResponse, CosmosClientError>
pub async fn vote( &self, proposal_id: u64, voter: &str ) -> Result<QueryVoteResponse, CosmosClientError>
pub async fn votes( &self, proposal_id: u64, pagination: Option<PageRequest> ) -> Result<QueryVotesResponse, CosmosClientError>
pub async fn params( &self, params_type: &str ) -> Result<QueryParamsResponse, CosmosClientError>
pub async fn deposit( &self, proposal_id: u64, depositor: &str ) -> Result<QueryDepositResponse, CosmosClientError>
pub async fn deposits( &self, proposal_id: u64, pagination: Option<PageRequest> ) -> Result<QueryDepositsResponse, CosmosClientError>
pub async fn tally_result( &self, proposal_id: u64 ) -> Result<QueryTallyResultResponse, CosmosClientError>
Auto Trait Implementations§
impl !RefUnwindSafe for GovModule
impl !Send for GovModule
impl !Sync for GovModule
impl Unpin for GovModule
impl !UnwindSafe for GovModule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request