pub struct BlockParams {
pub max_bytes: Option<i64>,
pub max_gas: Option<i64>,
}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§
Source§impl Clone for BlockParams
impl Clone for BlockParams
Source§fn clone(&self) -> BlockParams
fn clone(&self) -> BlockParams
Returns a duplicate 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 BlockParams
impl Debug for BlockParams
Source§impl Default for BlockParams
impl Default for BlockParams
Source§fn default() -> BlockParams
fn default() -> BlockParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockParams
impl<'de> Deserialize<'de> for BlockParams
Source§fn 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
Source§impl JsonSchema for BlockParams
impl JsonSchema for BlockParams
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn 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 moreSource§impl PartialEq for BlockParams
impl PartialEq for BlockParams
Source§impl Serialize for BlockParams
impl Serialize for BlockParams
impl Eq for BlockParams
impl StructuralPartialEq for BlockParams
Auto Trait Implementations§
impl Freeze for BlockParams
impl RefUnwindSafe for BlockParams
impl Send for BlockParams
impl Sync for BlockParams
impl Unpin for BlockParams
impl UnwindSafe for BlockParams
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