pub struct ModelPolicyRule {
pub match_type: ModelPolicyMatchType,
pub match_value: String,
pub no_fallback: bool,
pub overrides: Mapping,
}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: MappingTrait Implementations§
Source§impl Clone for ModelPolicyRule
impl Clone for ModelPolicyRule
Source§fn clone(&self) -> ModelPolicyRule
fn clone(&self) -> ModelPolicyRule
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 moreSource§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§fn eq(&self, other: &ModelPolicyRule) -> bool
fn eq(&self, other: &ModelPolicyRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelPolicyRule
impl Serialize for ModelPolicyRule
impl StructuralPartialEq for ModelPolicyRule
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more