pub struct MithrilStakeDistributionMessage {
pub epoch: i64,
pub hash: String,
pub certificate_hash: Option<String>,
pub signers: Vec<SignerWithStake>,
pub created_at: String,
pub protocol_parameters: ProtocolParameters,
}Expand description
MithrilStakeDistributionMessage : This message represents a Mithril stake distribution.
Fields§
§epoch: i64Cardano chain epoch number
hash: StringHash of the Mithril stake distribution
certificate_hash: Option<String>Hash of the associated certificate
signers: Vec<SignerWithStake>The list of the signers with their stakes and verification keys
created_at: StringDate and time of the entity creation
protocol_parameters: ProtocolParametersImplementations§
Source§impl MithrilStakeDistributionMessage
impl MithrilStakeDistributionMessage
Sourcepub fn new(
epoch: i64,
hash: String,
signers: Vec<SignerWithStake>,
created_at: String,
protocol_parameters: ProtocolParameters,
) -> MithrilStakeDistributionMessage
pub fn new( epoch: i64, hash: String, signers: Vec<SignerWithStake>, created_at: String, protocol_parameters: ProtocolParameters, ) -> MithrilStakeDistributionMessage
This message represents a Mithril stake distribution.
Trait Implementations§
Source§impl Clone for MithrilStakeDistributionMessage
impl Clone for MithrilStakeDistributionMessage
Source§fn clone(&self) -> MithrilStakeDistributionMessage
fn clone(&self) -> MithrilStakeDistributionMessage
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 Default for MithrilStakeDistributionMessage
impl Default for MithrilStakeDistributionMessage
Source§fn default() -> MithrilStakeDistributionMessage
fn default() -> MithrilStakeDistributionMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MithrilStakeDistributionMessage
impl<'de> Deserialize<'de> for MithrilStakeDistributionMessage
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 PartialEq for MithrilStakeDistributionMessage
impl PartialEq for MithrilStakeDistributionMessage
Source§fn eq(&self, other: &MithrilStakeDistributionMessage) -> bool
fn eq(&self, other: &MithrilStakeDistributionMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MithrilStakeDistributionMessage
Auto Trait Implementations§
impl Freeze for MithrilStakeDistributionMessage
impl RefUnwindSafe for MithrilStakeDistributionMessage
impl Send for MithrilStakeDistributionMessage
impl Sync for MithrilStakeDistributionMessage
impl Unpin for MithrilStakeDistributionMessage
impl UnwindSafe for MithrilStakeDistributionMessage
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