pub struct SnapshotMessage {
pub digest: String,
pub beacon: CardanoDbBeacon,
pub certificate_hash: String,
pub size: i64,
pub created_at: String,
pub locations: Vec<String>,
pub compression_algorithm: Option<String>,
pub cardano_node_version: Option<String>,
}Expand description
SnapshotMessage : This message represents a snapshot file and its metadata.
Fields§
§digest: StringDigest that is signed by the signer participants
beacon: CardanoDbBeacon§certificate_hash: StringHash of the associated certificate
size: i64Size of the snapshot file in Bytes
created_at: StringDate and time at which the snapshot was created
locations: Vec<String>Locations where the binary content of the snapshot can be retrieved
compression_algorithm: Option<String>Compression algorithm for the snapshot archive
cardano_node_version: Option<String>Version of the Cardano node which is used to create snapshot archives.
Implementations§
Source§impl SnapshotMessage
impl SnapshotMessage
Sourcepub fn new(
digest: String,
beacon: CardanoDbBeacon,
certificate_hash: String,
size: i64,
created_at: String,
locations: Vec<String>,
) -> SnapshotMessage
pub fn new( digest: String, beacon: CardanoDbBeacon, certificate_hash: String, size: i64, created_at: String, locations: Vec<String>, ) -> SnapshotMessage
This message represents a snapshot file and its metadata.
Trait Implementations§
Source§impl Clone for SnapshotMessage
impl Clone for SnapshotMessage
Source§fn clone(&self) -> SnapshotMessage
fn clone(&self) -> SnapshotMessage
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 SnapshotMessage
impl Debug for SnapshotMessage
Source§impl Default for SnapshotMessage
impl Default for SnapshotMessage
Source§fn default() -> SnapshotMessage
fn default() -> SnapshotMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotMessage
impl<'de> Deserialize<'de> for SnapshotMessage
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 SnapshotMessage
impl PartialEq for SnapshotMessage
Source§impl Serialize for SnapshotMessage
impl Serialize for SnapshotMessage
impl StructuralPartialEq for SnapshotMessage
Auto Trait Implementations§
impl Freeze for SnapshotMessage
impl RefUnwindSafe for SnapshotMessage
impl Send for SnapshotMessage
impl Sync for SnapshotMessage
impl Unpin for SnapshotMessage
impl UnwindSafe for SnapshotMessage
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