pub struct Metadata {
pub chain_id: Hash,
pub verifier_list: Vec<Address>,
pub consensus_interval: u64,
pub cycles_limit: u64,
pub cycles_price: u64,
}Fields§
§chain_id: Hash§verifier_list: Vec<Address>§consensus_interval: u64§cycles_limit: u64§cycles_price: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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 FixedCodec for Metadata
impl FixedCodec for Metadata
fn encode_fixed(&self) -> ProtocolResult<Bytes>
fn decode_fixed(bytes: Bytes) -> ProtocolResult<Self>
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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