Struct near_fetch::query::ViewAccount
source · pub struct ViewAccount { /* private fields */ }Trait Implementations§
source§impl ProcessQuery for ViewAccount
impl ProcessQuery for ViewAccount
§type Method = RpcQueryRequest
type Method = RpcQueryRequest
Method for doing the internal RPC request to the network of our choosing.
§type Output = AccountView
type Output = AccountView
Expected output after performing a query. This is mainly to convert over
the type from near-primitives to a workspace type.
source§fn into_request(self, block_reference: BlockReference) -> Result<Self::Method>
fn into_request(self, block_reference: BlockReference) -> Result<Self::Method>
Convert into the Request object that is required to perform the RPC request.
source§fn from_response(resp: RpcQueryResponse) -> Result<Self::Output>
fn from_response(resp: RpcQueryResponse) -> Result<Self::Output>
Convert the response from the RPC request to a type of our choosing, mainly to conform
to workspaces related types from the near-primitives or json types from the network.
Auto Trait Implementations§
impl RefUnwindSafe for ViewAccount
impl Send for ViewAccount
impl Sync for ViewAccount
impl Unpin for ViewAccount
impl UnwindSafe for ViewAccount
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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