pub struct CapabilitySource {
pub kind: CapabilitySourceKind,
pub source_ref: SourceRef,
pub adapter_ref: Option<AdapterRef>,
}Expand description
Describes the capability source portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§kind: CapabilitySourceKindKind/category for this record, capability, event, or detected resource.
source_ref: SourceRefTyped source reference that records where this item originated.
adapter_ref: Option<AdapterRef>Typed adapter ref reference. Resolving or executing it is a separate policy-gated step.
Implementations§
Trait Implementations§
Source§impl Clone for CapabilitySource
impl Clone for CapabilitySource
Source§fn clone(&self) -> CapabilitySource
fn clone(&self) -> CapabilitySource
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 CapabilitySource
impl Debug for CapabilitySource
Source§impl<'de> Deserialize<'de> for CapabilitySource
impl<'de> Deserialize<'de> for CapabilitySource
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 CapabilitySource
Source§impl PartialEq for CapabilitySource
impl PartialEq for CapabilitySource
Source§fn eq(&self, other: &CapabilitySource) -> bool
fn eq(&self, other: &CapabilitySource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapabilitySource
impl Serialize for CapabilitySource
impl StructuralPartialEq for CapabilitySource
Auto Trait Implementations§
impl Freeze for CapabilitySource
impl RefUnwindSafe for CapabilitySource
impl Send for CapabilitySource
impl Sync for CapabilitySource
impl Unpin for CapabilitySource
impl UnsafeUnpin for CapabilitySource
impl UnwindSafe for CapabilitySource
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