pub struct SmartOverride {
pub enabled: Option<bool>,
pub cheap: Option<String>,
pub max_escalations: Option<u32>,
}Expand description
Partial view of SmartConfig for per-agent overrides: None on a field
means “inherit the global value”. A distinct type rather than reusing
SmartConfig, because a full config standing in for a partial is exactly
what made an omitted field silently mean false instead of “unset”.
Fields§
§enabled: Option<bool>§cheap: Option<String>§max_escalations: Option<u32>Trait Implementations§
Source§impl Clone for SmartOverride
impl Clone for SmartOverride
Source§fn clone(&self) -> SmartOverride
fn clone(&self) -> SmartOverride
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 SmartOverride
impl Debug for SmartOverride
Source§impl Default for SmartOverride
impl Default for SmartOverride
Source§fn default() -> SmartOverride
fn default() -> SmartOverride
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SmartOverride
impl<'de> Deserialize<'de> for SmartOverride
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 SmartOverride
impl PartialEq for SmartOverride
Source§impl Serialize for SmartOverride
impl Serialize for SmartOverride
impl StructuralPartialEq for SmartOverride
Auto Trait Implementations§
impl Freeze for SmartOverride
impl RefUnwindSafe for SmartOverride
impl Send for SmartOverride
impl Sync for SmartOverride
impl Unpin for SmartOverride
impl UnsafeUnpin for SmartOverride
impl UnwindSafe for SmartOverride
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