pub struct NamedQuery { /* private fields */ }Expand description
One named query invocation pinned optionally to an immutable module hash.
Implementations§
Source§impl NamedQuery
impl NamedQuery
Sourcepub fn new(
contract: ApplicationContract,
name: impl Into<String>,
module_hash: Option<[u8; 32]>,
parameters: BTreeMap<String, ApplicationValue>,
cursor: Option<String>,
) -> Result<Self, ApplicationClientError>
pub fn new( contract: ApplicationContract, name: impl Into<String>, module_hash: Option<[u8; 32]>, parameters: BTreeMap<String, ApplicationValue>, cursor: Option<String>, ) -> Result<Self, ApplicationClientError>
Builds a name-addressed query call.
Sourcepub const fn expect_plan_hash(self, plan_hash: [u8; 32]) -> Self
pub const fn expect_plan_hash(self, plan_hash: [u8; 32]) -> Self
Requires the server to return this exact compiler-owned query plan.
Sourcepub fn with_options(
self,
options: QueryOptions,
) -> Result<Self, ApplicationClientError>
pub fn with_options( self, options: QueryOptions, ) -> Result<Self, ApplicationClientError>
Applies generated pagination and read-after-commit options.
Trait Implementations§
Source§impl Clone for NamedQuery
impl Clone for NamedQuery
Source§fn clone(&self) -> NamedQuery
fn clone(&self) -> NamedQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamedQuery
impl Debug for NamedQuery
impl Eq for NamedQuery
Source§impl PartialEq for NamedQuery
impl PartialEq for NamedQuery
Source§fn eq(&self, other: &NamedQuery) -> bool
fn eq(&self, other: &NamedQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamedQuery
Auto Trait Implementations§
impl Freeze for NamedQuery
impl RefUnwindSafe for NamedQuery
impl Send for NamedQuery
impl Sync for NamedQuery
impl Unpin for NamedQuery
impl UnsafeUnpin for NamedQuery
impl UnwindSafe for NamedQuery
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].