pub struct ModeDefaults {
pub default: InteractionLevel,
pub capabilities: BTreeMap<Capability, InteractionLevel>,
}Expand description
Interaction mode defaults: a global default plus optional per-capability overrides.
Deserializes from flat YAML like: { default: collaborative, implement: autonomous }.
Fields§
§default: InteractionLevelFallback mode when no per-capability mode is set.
capabilities: BTreeMap<Capability, InteractionLevel>Per-capability mode overrides (flattened into the same map).
Trait Implementations§
Source§impl Clone for ModeDefaults
impl Clone for ModeDefaults
Source§fn clone(&self) -> ModeDefaults
fn clone(&self) -> ModeDefaults
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 ModeDefaults
impl Debug for ModeDefaults
Source§impl Default for ModeDefaults
impl Default for ModeDefaults
Source§fn default() -> ModeDefaults
fn default() -> ModeDefaults
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModeDefaults
impl<'de> Deserialize<'de> for ModeDefaults
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 ModeDefaults
impl PartialEq for ModeDefaults
Source§fn eq(&self, other: &ModeDefaults) -> bool
fn eq(&self, other: &ModeDefaults) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModeDefaults
impl Serialize for ModeDefaults
impl StructuralPartialEq for ModeDefaults
Auto Trait Implementations§
impl Freeze for ModeDefaults
impl RefUnwindSafe for ModeDefaults
impl Send for ModeDefaults
impl Sync for ModeDefaults
impl Unpin for ModeDefaults
impl UnsafeUnpin for ModeDefaults
impl UnwindSafe for ModeDefaults
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