pub struct StateQuery {
pub account: Option<String>,
pub include_code: bool,
pub include_storage: bool,
pub block_number: Option<u64>,
}Expand description
State query interface
Fields§
§account: Option<String>§include_code: bool§include_storage: bool§block_number: Option<u64>Implementations§
Source§impl StateQuery
impl StateQuery
Sourcepub fn for_account(address: impl Into<String>) -> Self
pub fn for_account(address: impl Into<String>) -> Self
Create a query for a specific account
Sourcepub fn with_storage(self) -> Self
pub fn with_storage(self) -> Self
Include storage in the query result
Trait Implementations§
Source§impl Debug for StateQuery
impl Debug for StateQuery
Source§impl Default for StateQuery
impl Default for StateQuery
Source§fn default() -> StateQuery
fn default() -> StateQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StateQuery
impl RefUnwindSafe for StateQuery
impl Send for StateQuery
impl Sync for StateQuery
impl Unpin for StateQuery
impl UnwindSafe for StateQuery
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more