pub enum CommandPolicyContext {
Declared {
format_version: u32,
controller: ControllerPolicy,
seat: SeatPolicy,
interaction: InteractionPolicy,
diagnostic_commands_enabled: bool,
},
CompatibilityV1,
ManifestOnlyV1,
LegacyUnspecified,
}Expand description
Command-relevant policy deliberately omits run purpose, observation, and trace so authoritative handlers cannot branch on presentation-only inputs.
Variants§
Declared
CompatibilityV1
ManifestOnlyV1
LegacyUnspecified
Trait Implementations§
Source§impl Clone for CommandPolicyContext
impl Clone for CommandPolicyContext
Source§impl Debug for CommandPolicyContext
impl Debug for CommandPolicyContext
Source§impl<'de> Deserialize<'de> for CommandPolicyContext
impl<'de> Deserialize<'de> for CommandPolicyContext
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
impl Eq for CommandPolicyContext
Source§impl PartialEq for CommandPolicyContext
impl PartialEq for CommandPolicyContext
Source§impl Serialize for CommandPolicyContext
impl Serialize for CommandPolicyContext
impl StructuralPartialEq for CommandPolicyContext
Auto Trait Implementations§
impl Freeze for CommandPolicyContext
impl RefUnwindSafe for CommandPolicyContext
impl Send for CommandPolicyContext
impl Sync for CommandPolicyContext
impl Unpin for CommandPolicyContext
impl UnsafeUnpin for CommandPolicyContext
impl UnwindSafe for CommandPolicyContext
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