pub enum ModelLimitSource {
Fallback = 0,
Static = 1,
LiveMetadata = 2,
UserOverride = 3,
}Expand description
Provenance of a ModelContextLimits value.
Resolution order is: user override, then live metadata, then static
provider metadata, then conservative fallback. See
ModelContextLimits::resolve.
Variants§
Fallback = 0
Conservative default when nothing else is known.
Static = 1
Built-in static provider metadata (no live fetch).
LiveMetadata = 2
Live provider metadata fetched at runtime.
UserOverride = 3
User-supplied config override under [model_limits."provider/model-id"].
Implementations§
Trait Implementations§
Source§impl Clone for ModelLimitSource
impl Clone for ModelLimitSource
Source§fn clone(&self) -> ModelLimitSource
fn clone(&self) -> ModelLimitSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelLimitSource
Source§impl Debug for ModelLimitSource
impl Debug for ModelLimitSource
Source§impl<'de> Deserialize<'de> for ModelLimitSource
impl<'de> Deserialize<'de> for ModelLimitSource
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 ModelLimitSource
Source§impl Hash for ModelLimitSource
impl Hash for ModelLimitSource
Source§impl PartialEq for ModelLimitSource
impl PartialEq for ModelLimitSource
Source§impl Serialize for ModelLimitSource
impl Serialize for ModelLimitSource
impl StructuralPartialEq for ModelLimitSource
Auto Trait Implementations§
impl Freeze for ModelLimitSource
impl RefUnwindSafe for ModelLimitSource
impl Send for ModelLimitSource
impl Sync for ModelLimitSource
impl Unpin for ModelLimitSource
impl UnsafeUnpin for ModelLimitSource
impl UnwindSafe for ModelLimitSource
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