Struct tg_bindings::BlockParams
source · [−]Fields
max_bytes: Option<i64>Maximum number of bytes (over all tx) to be included in a block
max_gas: Option<i64>Maximum gas (over all tx) to be executed in one block. If set, more txs may be included in a block, but when executing, all tx after this is limit are consumed will immediately error
Trait Implementations
sourceimpl Clone for BlockParams
impl Clone for BlockParams
sourcefn clone(&self) -> BlockParams
fn clone(&self) -> BlockParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BlockParams
impl Debug for BlockParams
sourceimpl Default for BlockParams
impl Default for BlockParams
sourcefn default() -> BlockParams
fn default() -> BlockParams
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlockParams
impl<'de> Deserialize<'de> for BlockParams
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for BlockParams
impl JsonSchema for BlockParams
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
sourceimpl PartialEq<BlockParams> for BlockParams
impl PartialEq<BlockParams> for BlockParams
sourcefn eq(&self, other: &BlockParams) -> bool
fn eq(&self, other: &BlockParams) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BlockParams) -> bool
fn ne(&self, other: &BlockParams) -> bool
This method tests for !=.
sourceimpl Serialize for BlockParams
impl Serialize for BlockParams
impl StructuralPartialEq for BlockParams
Auto Trait Implementations
impl RefUnwindSafe for BlockParams
impl Send for BlockParams
impl Sync for BlockParams
impl Unpin for BlockParams
impl UnwindSafe for BlockParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more