pub struct ModelEstimate {
pub weights: u64,
pub kv: u64,
pub overhead: u64,
pub need: u64,
pub fallback: bool,
pub ctx: Option<u64>,
pub note: String,
}Expand description
Estimate breakdown.
Fields§
§weights: u64§kv: u64§overhead: u64§need: u64§fallback: booltrue when metadata was missing and the 1.2× file-size fallback was used.
ctx: Option<u64>§note: StringTrait Implementations§
Source§impl Clone for ModelEstimate
impl Clone for ModelEstimate
Source§impl Debug for ModelEstimate
impl Debug for ModelEstimate
Source§impl Default for ModelEstimate
impl Default for ModelEstimate
Source§impl<'de> Deserialize<'de> for ModelEstimatewhere
ModelEstimate: Default,
impl<'de> Deserialize<'de> for ModelEstimatewhere
ModelEstimate: Default,
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 PartialEq for ModelEstimate
impl PartialEq for ModelEstimate
Source§impl Serialize for ModelEstimate
impl Serialize for ModelEstimate
impl StructuralPartialEq for ModelEstimate
Auto Trait Implementations§
impl Forget for ModelEstimate
impl Freeze for ModelEstimate
impl Move for ModelEstimate
impl RefUnwindSafe for ModelEstimate
impl Send for ModelEstimatewhere
RawVecInner: Send,
impl Sync for ModelEstimatewhere
RawVecInner: Sync,
impl Unpin for ModelEstimate
impl UnsafeUnpin for ModelEstimate
impl UnwindSafe for ModelEstimatewhere
RawVecInner: UnwindSafe,
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