pub struct DeviceCaptureSpec {
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 capture face (device:capture): screenshots and friends.
Scope is mandatory at the policy layer (P3: an empty target list must be rejected) — capturing outside the declared targets is an overreach.
Fields§
§targets: Vec<String>Capture targets, e.g. ["window:editor"].
Trait Implementations§
Source§impl Clone for DeviceCaptureSpec
impl Clone for DeviceCaptureSpec
Source§fn clone(&self) -> DeviceCaptureSpec
fn clone(&self) -> DeviceCaptureSpec
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 DeviceCaptureSpec
impl Debug for DeviceCaptureSpec
Source§impl<'de> Deserialize<'de> for DeviceCaptureSpec
impl<'de> Deserialize<'de> for DeviceCaptureSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceCaptureSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceCaptureSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DeviceCaptureSpec
Source§impl PartialEq for DeviceCaptureSpec
impl PartialEq for DeviceCaptureSpec
Source§impl Serialize for DeviceCaptureSpec
impl Serialize for DeviceCaptureSpec
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 DeviceCaptureSpec
Auto Trait Implementations§
impl Forget for DeviceCaptureSpec
impl Freeze for DeviceCaptureSpec
impl Move for DeviceCaptureSpec
impl RefUnwindSafe for DeviceCaptureSpec
impl Send for DeviceCaptureSpec
impl Sync for DeviceCaptureSpec
impl Unpin for DeviceCaptureSpec
impl UnsafeUnpin for DeviceCaptureSpec
impl UnwindSafe for DeviceCaptureSpec
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.