pub struct ProtocolMessageParts {
pub snapshot_digest: Option<String>,
pub next_aggregate_verification_key: String,
pub latest_block_number: Option<String>,
}Expand description
ProtocolMessageParts : ProtocolMessage represents a message that is signed (or verified) by the Mithril protocol
Fields§
§snapshot_digest: Option<String>Digest of the snapshot archive
next_aggregate_verification_key: StringAggregate verification key (AVK) that will be used to create the next multi signature
latest_block_number: Option<String>The latest signed block number
Implementations§
Source§impl ProtocolMessageParts
impl ProtocolMessageParts
Sourcepub fn new(next_aggregate_verification_key: String) -> ProtocolMessageParts
pub fn new(next_aggregate_verification_key: String) -> ProtocolMessageParts
ProtocolMessage represents a message that is signed (or verified) by the Mithril protocol
Trait Implementations§
Source§impl Clone for ProtocolMessageParts
impl Clone for ProtocolMessageParts
Source§fn clone(&self) -> ProtocolMessageParts
fn clone(&self) -> ProtocolMessageParts
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 ProtocolMessageParts
impl Debug for ProtocolMessageParts
Source§impl Default for ProtocolMessageParts
impl Default for ProtocolMessageParts
Source§fn default() -> ProtocolMessageParts
fn default() -> ProtocolMessageParts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtocolMessageParts
impl<'de> Deserialize<'de> for ProtocolMessageParts
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 ProtocolMessageParts
impl PartialEq for ProtocolMessageParts
Source§impl Serialize for ProtocolMessageParts
impl Serialize for ProtocolMessageParts
impl StructuralPartialEq for ProtocolMessageParts
Auto Trait Implementations§
impl Freeze for ProtocolMessageParts
impl RefUnwindSafe for ProtocolMessageParts
impl Send for ProtocolMessageParts
impl Sync for ProtocolMessageParts
impl Unpin for ProtocolMessageParts
impl UnwindSafe for ProtocolMessageParts
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