pub struct CheckpointMetadata {
pub format_version: usize,
pub source_file: String,
pub source_sha256: String,
pub safetensors_file: String,
pub safetensors_files: BTreeMap<String, String>,
pub created_at_unix: u64,
pub tensor_count: usize,
pub total_tensor_bytes: usize,
pub metadata: Value,
pub security: CheckpointSecurity,
pub tensors: TensorManifest,
}Fields§
§format_version: usize§source_file: String§source_sha256: String§safetensors_file: String§safetensors_files: BTreeMap<String, String>§created_at_unix: u64§tensor_count: usize§total_tensor_bytes: usize§metadata: Value§security: CheckpointSecurity§tensors: TensorManifestTrait 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
Auto Trait Implementations§
impl Freeze for CheckpointMetadata
impl RefUnwindSafe for CheckpointMetadata
impl Send for CheckpointMetadata
impl Sync for CheckpointMetadata
impl Unpin for CheckpointMetadata
impl UnsafeUnpin 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