pub struct ProviderPack { /* private fields */ }Expand description
One validated, content-addressed provider pack held entirely in memory.
Implementations§
Source§impl ProviderPack
impl ProviderPack
Sourcepub fn new(
manifest: ProviderPackManifest,
assets: Vec<ProviderAsset>,
) -> OperationResult<Self>
pub fn new( manifest: ProviderPackManifest, assets: Vec<ProviderAsset>, ) -> OperationResult<Self>
Validates a typed manifest and its exact processed assets.
The host remains responsible for JSON Schema validation, terms review, and local file selection. This constructor rechecks the invariants needed for safe deterministic embedding and computes a content revision without filesystem, network, clock, or environment access.
Sourcepub fn manifest(&self) -> &ProviderPackManifest
pub fn manifest(&self) -> &ProviderPackManifest
Returns the validated public provider-pack manifest.
Trait Implementations§
Source§impl Clone for ProviderPack
impl Clone for ProviderPack
Source§fn clone(&self) -> ProviderPack
fn clone(&self) -> ProviderPack
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 ProviderPack
impl Debug for ProviderPack
impl Eq for ProviderPack
Source§impl PartialEq for ProviderPack
impl PartialEq for ProviderPack
impl StructuralPartialEq for ProviderPack
Auto Trait Implementations§
impl Freeze for ProviderPack
impl RefUnwindSafe for ProviderPack
impl Send for ProviderPack
impl Sync for ProviderPack
impl Unpin for ProviderPack
impl UnsafeUnpin for ProviderPack
impl UnwindSafe for ProviderPack
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