pub struct MetadataKey {
pub namespace: MetadataNamespace,
pub tag: String,
}Expand description
Fully-qualified key into ImageMetadata::extra.
Fields§
§namespace: MetadataNamespaceOrigin namespace.
tag: StringTag identifier — a string for serde stability and human-readable dumps
(e.g. "0x9209" for an EXIF tag, or an XMP property path).
Implementations§
Source§impl MetadataKey
impl MetadataKey
Sourcepub fn new(namespace: MetadataNamespace, tag: impl Into<String>) -> Self
pub fn new(namespace: MetadataNamespace, tag: impl Into<String>) -> Self
Create a new metadata key.
Trait Implementations§
Source§impl Clone for MetadataKey
impl Clone for MetadataKey
Source§fn clone(&self) -> MetadataKey
fn clone(&self) -> MetadataKey
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 MetadataKey
impl Debug for MetadataKey
Source§impl Hash for MetadataKey
impl Hash for MetadataKey
Source§impl PartialEq for MetadataKey
impl PartialEq for MetadataKey
Source§fn eq(&self, other: &MetadataKey) -> bool
fn eq(&self, other: &MetadataKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MetadataKey
impl StructuralPartialEq for MetadataKey
Auto Trait Implementations§
impl Freeze for MetadataKey
impl RefUnwindSafe for MetadataKey
impl Send for MetadataKey
impl Sync for MetadataKey
impl Unpin for MetadataKey
impl UnsafeUnpin for MetadataKey
impl UnwindSafe for MetadataKey
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