Struct near_vm_logic::ViewConfig
source · pub struct ViewConfig {
pub max_gas_burnt: u64,
}
Expand description
Configuration of view methods execution, during which no costs should be charged.
Fields§
§max_gas_burnt: u64
If specified, defines max burnt gas per view method.
Trait Implementations§
source§impl Clone for ViewConfig
impl Clone for ViewConfig
source§fn clone(&self) -> ViewConfig
fn clone(&self) -> ViewConfig
Returns a copy of the value. Read more
1.0.0 · 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 ViewConfig
impl Debug for ViewConfig
source§impl Default for ViewConfig
impl Default for ViewConfig
source§fn default() -> ViewConfig
fn default() -> ViewConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ViewConfig
impl<'de> Deserialize<'de> for ViewConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ViewConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ViewConfig, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ViewConfig
impl Hash for ViewConfig
source§impl PartialEq<ViewConfig> for ViewConfig
impl PartialEq<ViewConfig> for ViewConfig
source§fn eq(&self, other: &ViewConfig) -> bool
fn eq(&self, other: &ViewConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ViewConfig
impl Serialize for ViewConfig
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ViewConfig
impl StructuralEq for ViewConfig
impl StructuralPartialEq for ViewConfig
Auto Trait Implementations§
impl RefUnwindSafe for ViewConfig
impl Send for ViewConfig
impl Sync for ViewConfig
impl Unpin for ViewConfig
impl UnwindSafe for ViewConfig
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§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> 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>
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> 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