pub struct AccountQuery { /* private fields */ }Expand description
Query builder for getting full account information.
§Example
let near = Near::testnet().build();
let account = near.account("alice.testnet").await?;
println!("Storage used: {} bytes", account.storage_usage);Implementations§
Source§impl AccountQuery
impl AccountQuery
Sourcepub fn at_block_hash(self, hash: CryptoHash) -> Self
pub fn at_block_hash(self, hash: CryptoHash) -> Self
Query at a specific block hash.
Trait Implementations§
Source§impl IntoFuture for AccountQuery
impl IntoFuture for AccountQuery
Source§type Output = Result<AccountView, Error>
type Output = Result<AccountView, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <AccountQuery as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <AccountQuery as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for AccountQuery
impl !RefUnwindSafe for AccountQuery
impl Send for AccountQuery
impl Sync for AccountQuery
impl Unpin for AccountQuery
impl UnsafeUnpin for AccountQuery
impl !UnwindSafe for AccountQuery
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