pub enum ContextBudgetPolicyV1 {
TokenLimit {
tokens: u64,
},
NoTokenLimit {},
}Expand description
Explicit token policy; no token limit does not disable other resource limits.
Variants§
Trait Implementations§
Source§impl Clone for ContextBudgetPolicyV1
impl Clone for ContextBudgetPolicyV1
impl Copy for ContextBudgetPolicyV1
Source§impl Debug for ContextBudgetPolicyV1
impl Debug for ContextBudgetPolicyV1
Source§impl<'de> Deserialize<'de> for ContextBudgetPolicyV1
impl<'de> Deserialize<'de> for ContextBudgetPolicyV1
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 ContextBudgetPolicyV1
Source§impl PartialEq for ContextBudgetPolicyV1
impl PartialEq for ContextBudgetPolicyV1
Source§impl Serialize for ContextBudgetPolicyV1
impl Serialize for ContextBudgetPolicyV1
impl StructuralPartialEq for ContextBudgetPolicyV1
Auto Trait Implementations§
impl Forget for ContextBudgetPolicyV1
impl Freeze for ContextBudgetPolicyV1
impl Move for ContextBudgetPolicyV1
impl RefUnwindSafe for ContextBudgetPolicyV1
impl Send for ContextBudgetPolicyV1
impl Sync for ContextBudgetPolicyV1
impl Unpin for ContextBudgetPolicyV1
impl UnsafeUnpin for ContextBudgetPolicyV1
impl UnwindSafe for ContextBudgetPolicyV1
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