pub struct CheckpointMetadata {
pub fingerprint: i64,
pub identifier: Option<String>,
pub processed_records: Option<i64>,
pub size: Option<i64>,
pub steps: Option<i64>,
pub uuid: Uuid,
}Expand description
Holds meta-data about a checkpoint that was taken for persistent storage and recovery of a circuit’s state.
JSON schema
{
"description": "Holds meta-data about a checkpoint that was taken for persistent storage\nand recovery of a circuit's state.",
"type": "object",
"required": [
"fingerprint",
"uuid"
],
"properties": {
"fingerprint": {
"description": "Fingerprint of the circuit at the time of the checkpoint.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"identifier": {
"description": "An optional name for the checkpoint.",
"type": [
"string",
"null"
]
},
"processed_records": {
"description": "Total number of records processed.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"size": {
"description": "Total size of the checkpoint files in bytes.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"steps": {
"description": "Total number of steps made.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"uuid": {
"description": "A unique identifier for the given checkpoint.\n\nThis is used to identify the checkpoint in the file-system hierarchy.",
"type": "string",
"format": "uuid"
}
}
}Fields§
§fingerprint: i64Fingerprint of the circuit at the time of the checkpoint.
identifier: Option<String>An optional name for the checkpoint.
processed_records: Option<i64>Total number of records processed.
size: Option<i64>Total size of the checkpoint files in bytes.
steps: Option<i64>Total number of steps made.
uuid: UuidA unique identifier for the given checkpoint.
This is used to identify the checkpoint in the file-system hierarchy.
Implementations§
Source§impl CheckpointMetadata
impl CheckpointMetadata
pub fn builder() -> CheckpointMetadata
Trait Implementations§
Source§impl Clone for CheckpointMetadata
impl Clone for CheckpointMetadata
Source§fn clone(&self) -> CheckpointMetadata
fn clone(&self) -> CheckpointMetadata
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 CheckpointMetadata
impl Debug for CheckpointMetadata
Source§impl<'de> Deserialize<'de> for CheckpointMetadata
impl<'de> Deserialize<'de> for CheckpointMetadata
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 From<&CheckpointMetadata> for CheckpointMetadata
impl From<&CheckpointMetadata> for CheckpointMetadata
Source§fn from(value: &CheckpointMetadata) -> Self
fn from(value: &CheckpointMetadata) -> Self
Converts to this type from the input type.
Source§impl From<CheckpointMetadata> for CheckpointMetadata
impl From<CheckpointMetadata> for CheckpointMetadata
Source§fn from(value: CheckpointMetadata) -> Self
fn from(value: CheckpointMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for CheckpointMetadata
impl Serialize for CheckpointMetadata
Source§impl TryFrom<CheckpointMetadata> for CheckpointMetadata
impl TryFrom<CheckpointMetadata> for CheckpointMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CheckpointMetadata) -> Result<Self, ConversionError>
fn try_from(value: CheckpointMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CheckpointMetadata
impl RefUnwindSafe for CheckpointMetadata
impl Send for CheckpointMetadata
impl Sync for CheckpointMetadata
impl Unpin for CheckpointMetadata
impl UnwindSafe for CheckpointMetadata
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