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§fn clone(&self) -> CommandPolicyContext
fn clone(&self) -> CommandPolicyContext
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 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<CommandPolicyContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandPolicyContext, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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