pub struct Snapshot<'a> {
pub block_hash: String,
pub block_number: u64,
/* private fields */
}Expand description
A read-only view pinned to one block hash.
Fields§
§block_hash: String§block_number: u64Implementations§
Source§impl Snapshot<'_>
impl Snapshot<'_>
pub fn query( &self, pallet: &str, storage: &str, params: &[Value], ) -> Result<Value, CoreError>
pub fn query_map( &self, pallet: &str, storage: &str, fixed_params: &[Value], ) -> Result<Vec<(Value, Value)>, CoreError>
pub fn runtime_call( &self, api: &str, method: &str, params: &[Value], ) -> Result<Value, CoreError>
pub fn balance_rao(&self, address: &str) -> Result<u128, CoreError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Snapshot<'a>
impl<'a> !UnwindSafe for Snapshot<'a>
impl<'a> Forget for Snapshot<'a>
impl<'a> Freeze for Snapshot<'a>
impl<'a> Move for Snapshot<'a>
impl<'a> Send for Snapshot<'a>
impl<'a> Sync for Snapshot<'a>
impl<'a> Unpin for Snapshot<'a>
impl<'a> UnsafeUnpin for Snapshot<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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 moreimpl<T> JsonSchemaMaybe for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.