pub enum CapabilitySpec {
FsRead(FsReadSpec),
NetHttp(NetHttpSpec),
}Expand description
Capability allow-list entry (declaration form; fail-closed, undeclared = not granted). wasm form only.
fs:read must come with paths (WASI preopens are path-scoped: no preopen
= can read nothing, preopening / = giving everything); net:http must
come with a hosts allow-list (filtered at outbound-request time, not on
the list = rejected). Cross fields (fs with hosts / net with paths) are
enforced by the payload structs’ deny_unknown_fields.
Variants§
FsRead(FsReadSpec)
Readable directories/files relative to the plugin root (resolved to absolute paths at install time and pinned into the registry).
NetHttp(NetHttpSpec)
Outbound HTTP host allow-list (normalized and pinned into the registry at install time).
Trait Implementations§
Source§impl Clone for CapabilitySpec
impl Clone for CapabilitySpec
Source§impl Debug for CapabilitySpec
impl Debug for CapabilitySpec
Source§impl<'de> Deserialize<'de> for CapabilitySpec
impl<'de> Deserialize<'de> for CapabilitySpec
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 CapabilitySpec
Source§impl PartialEq for CapabilitySpec
impl PartialEq for CapabilitySpec
Source§impl Serialize for CapabilitySpec
impl Serialize for CapabilitySpec
impl StructuralPartialEq for CapabilitySpec
Auto Trait Implementations§
impl Freeze for CapabilitySpec
impl RefUnwindSafe for CapabilitySpec
impl Send for CapabilitySpec
impl Sync for CapabilitySpec
impl Unpin for CapabilitySpec
impl UnsafeUnpin for CapabilitySpec
impl UnwindSafe for CapabilitySpec
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
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
Compare self to
key and return true if they are equal.