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