pub struct Contents<'a> {
pub family: &'a str,
pub id: &'a str,
pub tensors: &'a Tensors,
pub files: Vec<(&'a str, &'a [u8])>,
pub extra: Map<String, Value>,
}Expand description
What to pack.
Fields§
§family: &'a strModel family.
id: &'a strModel id.
tensors: &'a TensorsThe tensors, packed in their order.
files: Vec<(&'a str, &'a [u8])>Files to carry, by relative name.
extra: Map<String, Value>Extra index fields, such as the source safetensors metadata.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Contents<'a>
impl<'a> RefUnwindSafe for Contents<'a>
impl<'a> Send for Contents<'a>
impl<'a> Sync for Contents<'a>
impl<'a> Unpin for Contents<'a>
impl<'a> UnsafeUnpin for Contents<'a>
impl<'a> UnwindSafe for Contents<'a>
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