pub struct DeviceInputSpec {
pub targets: Vec<String>,
}Expand description
Capability vocabulary — one set of types, owned by phi-cap
(sdk-assembly §4.1): declaration layer CapabilitySpec, pinned layer
ResolvedCapability, decision layer phi_cap::Capability, with
class_of the only translation between them. This module re-exports the
same type names so existing plugin code is unchanged (the old “wasm form
only” law is lifted: every shape that declares capabilities uses these).
Which variants a form may declare is that form’s enforcement face —
see PluginManifest::validate_tool: declared means enforceable.
Device input face (device:input): pointer / keyboard / touch injection.
targets is the scope that gets pinned — “can only touch these windows /
screens”. Fine-grained upstream verb tokens (cua’s input.pointer.click
and friends) land in verb at P3; the variant shape is already stable.
Fields§
§targets: Vec<String>Input targets, e.g. ["window:editor"] / ["screen:main"].
Trait Implementations§
Source§impl Clone for DeviceInputSpec
impl Clone for DeviceInputSpec
Source§fn clone(&self) -> DeviceInputSpec
fn clone(&self) -> DeviceInputSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceInputSpec
impl Debug for DeviceInputSpec
Source§impl<'de> Deserialize<'de> for DeviceInputSpec
impl<'de> Deserialize<'de> for DeviceInputSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceInputSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceInputSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DeviceInputSpec
Source§impl PartialEq for DeviceInputSpec
impl PartialEq for DeviceInputSpec
Source§impl Serialize for DeviceInputSpec
impl Serialize for DeviceInputSpec
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,
impl StructuralPartialEq for DeviceInputSpec
Auto Trait Implementations§
impl Forget for DeviceInputSpec
impl Freeze for DeviceInputSpec
impl RefUnwindSafe for DeviceInputSpec
impl Send for DeviceInputSpec
impl Sync for DeviceInputSpec
impl Unpin for DeviceInputSpec
impl UnsafeUnpin for DeviceInputSpec
impl UnwindSafe for DeviceInputSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.