pub struct MetadataEntry { /* private fields */ }Expand description
One ordered string-keyed mapping entry, including key provenance and sensitivity.
Implementations§
Source§impl MetadataEntry
impl MetadataEntry
Sourcepub const fn new(
key: Sourced<ProtectedString>,
value: Sourced<MetadataNode>,
) -> Self
pub const fn new( key: Sourced<ProtectedString>, value: Sourced<MetadataNode>, ) -> Self
Creates an ordered mapping entry.
Sourcepub const fn key(&self) -> &Sourced<ProtectedString>
pub const fn key(&self) -> &Sourced<ProtectedString>
Returns the original key and its source evidence.
Sourcepub const fn value(&self) -> &Sourced<MetadataNode>
pub const fn value(&self) -> &Sourced<MetadataNode>
Returns the nested value and its source evidence.
Trait Implementations§
Source§impl Clone for MetadataEntry
impl Clone for MetadataEntry
Source§impl Debug for MetadataEntry
impl Debug for MetadataEntry
impl Eq for MetadataEntry
Source§impl PartialEq for MetadataEntry
impl PartialEq for MetadataEntry
impl StructuralPartialEq for MetadataEntry
Auto Trait Implementations§
impl Freeze for MetadataEntry
impl RefUnwindSafe for MetadataEntry
impl Send for MetadataEntry
impl Sync for MetadataEntry
impl Unpin for MetadataEntry
impl UnsafeUnpin for MetadataEntry
impl UnwindSafe for MetadataEntry
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