pub struct ProviderManifest {
pub version: u16,
pub id: Symbol,
pub transport: ProviderTransport,
pub profile: String,
pub observations: Vec<Symbol>,
pub effects: Vec<Symbol>,
pub consent: Vec<CapabilityName>,
pub stale_after: Duration,
pub cassette: String,
pub fallback: Symbol,
}Expand description
Versioned, non-secret provider declaration.
Fields§
§version: u16Manifest schema version. Version one is currently supported.
id: SymbolStable provider identity.
transport: ProviderTransportTransport selected from the closed vocabulary.
profile: StringContent-addressed profile reference.
observations: Vec<Symbol>Declared observation kinds.
effects: Vec<Symbol>References to registered effect descriptors.
consent: Vec<CapabilityName>Explicit consent capabilities.
stale_after: DurationBound after which discovery data is stale.
cassette: StringContent-addressed fake cassette.
fallback: SymbolNamed observation-only fallback.
Implementations§
Source§impl ProviderManifest
impl ProviderManifest
Sourcepub fn validate(&self, registry: &EffectRegistry) -> DeviceResult<()>
pub fn validate(&self, registry: &EffectRegistry) -> DeviceResult<()>
Validates schema, staleness, secret hygiene, and descriptor references.
Trait Implementations§
Source§impl Clone for ProviderManifest
impl Clone for ProviderManifest
Source§fn clone(&self) -> ProviderManifest
fn clone(&self) -> ProviderManifest
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 ProviderManifest
impl Debug for ProviderManifest
impl Eq for ProviderManifest
Source§impl PartialEq for ProviderManifest
impl PartialEq for ProviderManifest
impl StructuralPartialEq for ProviderManifest
Auto Trait Implementations§
impl Freeze for ProviderManifest
impl RefUnwindSafe for ProviderManifest
impl Send for ProviderManifest
impl Sync for ProviderManifest
impl Unpin for ProviderManifest
impl UnsafeUnpin for ProviderManifest
impl UnwindSafe for ProviderManifest
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