pub enum WorkloadSizeV1 {
Tiny,
Small,
Medium,
Large,
VeryLarge,
}Expand description
Planned context budget, bucketed.
Variants§
Implementations§
Source§impl WorkloadSizeV1
impl WorkloadSizeV1
pub fn from_budget_tokens(tokens: u64) -> Self
Trait Implementations§
Source§impl Clone for WorkloadSizeV1
impl Clone for WorkloadSizeV1
impl Copy for WorkloadSizeV1
Source§impl Debug for WorkloadSizeV1
impl Debug for WorkloadSizeV1
Source§impl<'de> Deserialize<'de> for WorkloadSizeV1
impl<'de> Deserialize<'de> for WorkloadSizeV1
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 WorkloadSizeV1
Source§impl Hash for WorkloadSizeV1
impl Hash for WorkloadSizeV1
Source§impl Ord for WorkloadSizeV1
impl Ord for WorkloadSizeV1
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorkloadSizeV1
impl PartialEq for WorkloadSizeV1
Source§impl PartialOrd for WorkloadSizeV1
impl PartialOrd for WorkloadSizeV1
Source§impl Serialize for WorkloadSizeV1
impl Serialize for WorkloadSizeV1
impl StructuralPartialEq for WorkloadSizeV1
Auto Trait Implementations§
impl Forget for WorkloadSizeV1
impl Freeze for WorkloadSizeV1
impl Move for WorkloadSizeV1
impl RefUnwindSafe for WorkloadSizeV1
impl Send for WorkloadSizeV1
impl Sync for WorkloadSizeV1
impl Unpin for WorkloadSizeV1
impl UnsafeUnpin for WorkloadSizeV1
impl UnwindSafe for WorkloadSizeV1
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