pub struct Model {
pub name: String,
pub revision: String,
pub manifest_sha256: String,
pub dimensions: u64,
pub max_tokens: u64,
pub special_tokens: u64,
pub prefix_tokens: u64,
pub normalised: bool,
pub distance: Distance,
}Fields§
§name: String§revision: String§manifest_sha256: String§dimensions: u64§max_tokens: u64§special_tokens: u64§prefix_tokens: u64§normalised: bool§distance: DistanceTrait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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 Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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