pub enum MetadataKind {
Xmp,
Iptc,
Exif,
Icc,
}Expand description
Categories of image metadata that may be present in an artifact.
Used by TransformWarning::MetadataDropped to identify which metadata type
was silently dropped during a transform operation.
use truss::MetadataKind;
assert_eq!(format!("{}", MetadataKind::Xmp), "XMP");
assert_eq!(format!("{}", MetadataKind::Iptc), "IPTC");
assert_eq!(format!("{}", MetadataKind::Exif), "EXIF");
assert_eq!(format!("{}", MetadataKind::Icc), "ICC profile");Variants§
Xmp
XMP (Extensible Metadata Platform) metadata.
Iptc
IPTC/IIM (International Press Telecommunications Council) metadata.
Exif
EXIF (Exchangeable Image File Format) metadata.
Icc
ICC color profile.
Trait Implementations§
Source§impl Clone for MetadataKind
impl Clone for MetadataKind
Source§fn clone(&self) -> MetadataKind
fn clone(&self) -> MetadataKind
Returns a duplicate of the value. Read more
1.0.0 · 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 MetadataKind
impl Debug for MetadataKind
Source§impl Display for MetadataKind
impl Display for MetadataKind
Source§impl PartialEq for MetadataKind
impl PartialEq for MetadataKind
impl Copy for MetadataKind
impl Eq for MetadataKind
impl StructuralPartialEq for MetadataKind
Auto Trait Implementations§
impl Freeze for MetadataKind
impl RefUnwindSafe for MetadataKind
impl Send for MetadataKind
impl Sync for MetadataKind
impl Unpin for MetadataKind
impl UnsafeUnpin for MetadataKind
impl UnwindSafe for MetadataKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more