pub enum ContextUsageSource {
ProviderReported,
ConfigOverride,
Unknown,
}Expand description
Source used to determine the context-window capacity reported in ContextUsage.
Variants§
ProviderReported
Window capacity reported directly by the underlying SDK/CLI stream.
ConfigOverride
Window capacity supplied through runtime SDK configuration.
Unknown
Window capacity is unknown.
Trait Implementations§
Source§impl Clone for ContextUsageSource
impl Clone for ContextUsageSource
Source§fn clone(&self) -> ContextUsageSource
fn clone(&self) -> ContextUsageSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextUsageSource
impl Debug for ContextUsageSource
Source§impl<'de> Deserialize<'de> for ContextUsageSource
impl<'de> Deserialize<'de> for ContextUsageSource
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 ContextUsageSource
impl PartialEq for ContextUsageSource
Source§impl Serialize for ContextUsageSource
impl Serialize for ContextUsageSource
impl Copy for ContextUsageSource
impl Eq for ContextUsageSource
impl StructuralPartialEq for ContextUsageSource
Auto Trait Implementations§
impl Freeze for ContextUsageSource
impl RefUnwindSafe for ContextUsageSource
impl Send for ContextUsageSource
impl Sync for ContextUsageSource
impl Unpin for ContextUsageSource
impl UnsafeUnpin for ContextUsageSource
impl UnwindSafe for ContextUsageSource
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