pub struct ManifestDocument { /* private fields */ }Expand description
Canonical Plugin Manifest plus its content identity.
Implementations§
Source§impl ManifestDocument
impl ManifestDocument
Sourcepub fn parse(input: &[u8]) -> Result<Self, BundleError>
pub fn parse(input: &[u8]) -> Result<Self, BundleError>
Strictly parses and validates one publisher Manifest.
Sourcepub fn from_value(value: PluginManifest) -> Result<Self, BundleError>
pub fn from_value(value: PluginManifest) -> Result<Self, BundleError>
Validates and canonicalizes one typed publisher Manifest.
pub const fn value(&self) -> &PluginManifest
pub fn bytes(&self) -> &[u8] ⓘ
pub fn digest(&self) -> &str
Trait Implementations§
Source§impl Clone for ManifestDocument
impl Clone for ManifestDocument
Source§fn clone(&self) -> ManifestDocument
fn clone(&self) -> ManifestDocument
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 moreAuto Trait Implementations§
impl Freeze for ManifestDocument
impl RefUnwindSafe for ManifestDocument
impl Send for ManifestDocument
impl Sync for ManifestDocument
impl Unpin for ManifestDocument
impl UnsafeUnpin for ManifestDocument
impl UnwindSafe for ManifestDocument
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