pub struct ModelFacts {
pub quant: Option<String>,
pub params: Option<u64>,
pub license: Option<String>,
pub runtime: Option<String>,
}Expand description
Facts the pin declares about its checkpoint.
Fields§
§quant: Option<String>Quantisation, as the file names it.
params: Option<u64>Unique parameter count of the checkpoint.
license: Option<String>Licence, as the model’s own source spells it.
runtime: Option<String>The runtime that loads the file.
Trait Implementations§
Source§impl Clone for ModelFacts
impl Clone for ModelFacts
Source§impl Debug for ModelFacts
impl Debug for ModelFacts
Source§impl Default for ModelFacts
impl Default for ModelFacts
Source§impl<'de> Deserialize<'de> for ModelFacts
impl<'de> Deserialize<'de> for ModelFacts
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
impl Eq for ModelFacts
Source§impl PartialEq for ModelFacts
impl PartialEq for ModelFacts
Source§impl Serialize for ModelFacts
impl Serialize for ModelFacts
impl StructuralPartialEq for ModelFacts
Auto Trait Implementations§
impl Freeze for ModelFacts
impl RefUnwindSafe for ModelFacts
impl Send for ModelFacts
impl Sync for ModelFacts
impl Unpin for ModelFacts
impl UnsafeUnpin for ModelFacts
impl UnwindSafe for ModelFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.