pub struct VendorMetadata { /* private fields */ }Expand description
One exact, case-sensitive vendor namespace at a supported neutral owner.
Implementations§
Source§impl VendorMetadata
impl VendorMetadata
Sourcepub fn new(
scope: MetadataScope,
namespace: Sourced<ProtectedString>,
payload: Sourced<MetadataNode>,
) -> Result<Self, MetadataError>
pub fn new( scope: MetadataScope, namespace: Sourced<ProtectedString>, payload: Sourced<MetadataNode>, ) -> Result<Self, MetadataError>
Creates an inert extension. Namespace validation does not derive a printable target section.
§Errors
Rejects empty/non-extension namespace spellings and bounded payload violations.
Sourcepub const fn scope(&self) -> &MetadataScope
pub const fn scope(&self) -> &MetadataScope
Returns the owner.
Sourcepub const fn namespace(&self) -> &Sourced<ProtectedString>
pub const fn namespace(&self) -> &Sourced<ProtectedString>
Returns the exact original namespace and source evidence.
Sourcepub const fn payload(&self) -> &Sourced<MetadataNode>
pub const fn payload(&self) -> &Sourced<MetadataNode>
Returns the inert semantic tree.
Sourcepub fn contains_sensitive(&self) -> bool
pub fn contains_sensitive(&self) -> bool
Returns whether any namespace, key or value is protected.
Trait Implementations§
Source§impl Clone for VendorMetadata
impl Clone for VendorMetadata
Source§impl Debug for VendorMetadata
impl Debug for VendorMetadata
impl Eq for VendorMetadata
Source§impl PartialEq for VendorMetadata
impl PartialEq for VendorMetadata
impl StructuralPartialEq for VendorMetadata
Auto Trait Implementations§
impl Freeze for VendorMetadata
impl RefUnwindSafe for VendorMetadata
impl Send for VendorMetadata
impl Sync for VendorMetadata
impl Unpin for VendorMetadata
impl UnsafeUnpin for VendorMetadata
impl UnwindSafe for VendorMetadata
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