pub struct ModelPolicyRule {
pub match_type: ModelPolicyMatchType,
pub match_value: String,
pub no_fallback: bool,
pub overrides: ModelPolicyOverride,
pub when: Option<String>,
}Expand description
Shared model-policy rule type used by profile frontmatter, agent overlays, and settings-level model policies.
Fields§
§match_type: ModelPolicyMatchType§match_value: String§no_fallback: bool§overrides: ModelPolicyOverride§when: Option<String>A compact, authored guide explaining when this model is a good choice.
Trait Implementations§
Source§impl Clone for ModelPolicyRule
impl Clone for ModelPolicyRule
Source§impl Debug for ModelPolicyRule
impl Debug for ModelPolicyRule
Source§impl<'de> Deserialize<'de> for ModelPolicyRule
impl<'de> Deserialize<'de> for ModelPolicyRule
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 ModelPolicyRule
impl PartialEq for ModelPolicyRule
Source§impl Serialize for ModelPolicyRule
impl Serialize for ModelPolicyRule
impl StructuralPartialEq for ModelPolicyRule
Auto Trait Implementations§
impl Forget for ModelPolicyRule
impl Freeze for ModelPolicyRule
impl RefUnwindSafe for ModelPolicyRule
impl Send for ModelPolicyRule
impl Sync for ModelPolicyRule
impl Unpin for ModelPolicyRule
impl UnsafeUnpin for ModelPolicyRule
impl UnwindSafe for ModelPolicyRule
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