pub struct CertificateListItemMessage {
pub hash: String,
pub previous_hash: String,
pub epoch: i64,
pub beacon: Option<CardanoDbBeacon>,
pub signed_entity_type: HashMap<String, Value>,
pub metadata: Box<CertificateListItemMessageMetadata>,
pub protocol_message: Box<ProtocolMessage>,
pub signed_message: String,
pub aggregate_verification_key: String,
}Expand description
CertificateListItemMessage : CertificateListItemMessage represents an item of a list of Mithril certificates
Fields§
§hash: StringHash of the current certificate
previous_hash: StringHash of the previous certificate
epoch: i64Cardano chain epoch number
beacon: Option<CardanoDbBeacon>§signed_entity_type: HashMap<String, Value>Entity type of the message that is signed
metadata: Box<CertificateListItemMessageMetadata>§protocol_message: Box<ProtocolMessage>§signed_message: StringHash of the protocol message that is signed by the signer participants
aggregate_verification_key: StringAggregate verification key used to verify the multi signature
Implementations§
Source§impl CertificateListItemMessage
impl CertificateListItemMessage
Sourcepub fn new(
hash: String,
previous_hash: String,
epoch: i64,
signed_entity_type: HashMap<String, Value>,
metadata: CertificateListItemMessageMetadata,
protocol_message: ProtocolMessage,
signed_message: String,
aggregate_verification_key: String,
) -> CertificateListItemMessage
pub fn new( hash: String, previous_hash: String, epoch: i64, signed_entity_type: HashMap<String, Value>, metadata: CertificateListItemMessageMetadata, protocol_message: ProtocolMessage, signed_message: String, aggregate_verification_key: String, ) -> CertificateListItemMessage
CertificateListItemMessage represents an item of a list of Mithril certificates
Trait Implementations§
Source§impl Clone for CertificateListItemMessage
impl Clone for CertificateListItemMessage
Source§fn clone(&self) -> CertificateListItemMessage
fn clone(&self) -> CertificateListItemMessage
Returns a copy 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 CertificateListItemMessage
impl Debug for CertificateListItemMessage
Source§impl Default for CertificateListItemMessage
impl Default for CertificateListItemMessage
Source§fn default() -> CertificateListItemMessage
fn default() -> CertificateListItemMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CertificateListItemMessage
impl<'de> Deserialize<'de> for CertificateListItemMessage
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
impl StructuralPartialEq for CertificateListItemMessage
Auto Trait Implementations§
impl Freeze for CertificateListItemMessage
impl RefUnwindSafe for CertificateListItemMessage
impl Send for CertificateListItemMessage
impl Sync for CertificateListItemMessage
impl Unpin for CertificateListItemMessage
impl UnwindSafe for CertificateListItemMessage
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