pub struct ModelRequestRule {
pub model_pattern: String,
pub endpoint: Option<String>,
pub scope: RequestScopeOverride,
}Expand description
A conditional override rule matching a model pattern.
Fields§
§model_pattern: StringModel pattern (exact: gpt-4o, prefix wildcard: gpt-5*).
endpoint: Option<String>Optional endpoint constraint.
scope: RequestScopeOverrideOverrides applied when this rule matches.
Trait Implementations§
Source§impl Clone for ModelRequestRule
impl Clone for ModelRequestRule
Source§fn clone(&self) -> ModelRequestRule
fn clone(&self) -> ModelRequestRule
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 ModelRequestRule
impl Debug for ModelRequestRule
Source§impl<'de> Deserialize<'de> for ModelRequestRule
impl<'de> Deserialize<'de> for ModelRequestRule
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 ModelRequestRule
impl PartialEq for ModelRequestRule
Source§impl Serialize for ModelRequestRule
impl Serialize for ModelRequestRule
impl StructuralPartialEq for ModelRequestRule
Auto Trait Implementations§
impl Freeze for ModelRequestRule
impl RefUnwindSafe for ModelRequestRule
impl Send for ModelRequestRule
impl Sync for ModelRequestRule
impl Unpin for ModelRequestRule
impl UnsafeUnpin for ModelRequestRule
impl UnwindSafe for ModelRequestRule
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