pub struct Auth<'a> { /* private fields */ }
Implementations§
Source§impl Auth<'_>
impl Auth<'_>
pub fn create(terra: &Terra) -> Auth<'_>
pub async fn account( &self, account_address: &str, ) -> Result<LCDResult<LCDTypeValue<AuthAccount>>, TerraRustAPIError>
Sourcepub async fn validator_delegations(
&self,
account_address: &str,
) -> Result<LCDResultVec<ValidatorDelegation>, TerraRustAPIError>
pub async fn validator_delegations( &self, account_address: &str, ) -> Result<LCDResultVec<ValidatorDelegation>, TerraRustAPIError>
all delegations for a given account
Sourcepub async fn validator_unbonding_delegations(
&self,
account_address: &str,
) -> Result<LCDResult<ValidatorUnbondingDelegation>, TerraRustAPIError>
pub async fn validator_unbonding_delegations( &self, account_address: &str, ) -> Result<LCDResult<ValidatorUnbondingDelegation>, TerraRustAPIError>
all unbonding delegations for a given account
Sourcepub async fn delegated_validators(
&self,
account_address: &str,
) -> Result<LCDResult<Vec<Validator>>, TerraRustAPIError>
pub async fn delegated_validators( &self, account_address: &str, ) -> Result<LCDResult<Vec<Validator>>, TerraRustAPIError>
all validators for a given account
Auto Trait Implementations§
impl<'a> Freeze for Auth<'a>
impl<'a> !RefUnwindSafe for Auth<'a>
impl<'a> Send for Auth<'a>
impl<'a> Sync for Auth<'a>
impl<'a> Unpin for Auth<'a>
impl<'a> !UnwindSafe for Auth<'a>
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