pub enum TagType {
Show 25 variants UnsignedByte, AsciiString, UnsignedShort, UnsignedLong, UnsignedRational, SignedByte, Undefined, SignedShort, SignedLong, SignedRational, TiffFloat, TiffDouble, TiffIfd, String, Date, Time, Comment, Directory, XmpText, XmpAlt, XmpBag, XmpSeq, LangAlt, Invalid, Unknown,
}
Expand description

The possible data types that a tag can have.

Variants

UnsignedByte

Exif BYTE type, 8-bit unsigned integer.

AsciiString

Exif ASCII type, 8-bit byte.

UnsignedShort

Exif SHORT type, 16-bit (2-byte) unsigned integer.

UnsignedLong

Exif LONG type, 32-bit (4-byte) unsigned integer.

UnsignedRational

Exif RATIONAL type, two LONGs: numerator and denumerator of a fraction.

SignedByte

Exif SBYTE type, an 8-bit signed (twos-complement) integer.

Undefined

Exif UNDEFINED type, an 8-bit byte that may contain anything.

SignedShort

Exif SSHORT type, a 16-bit (2-byte) signed (twos-complement) integer.

SignedLong

Exif SLONG type, a 32-bit (4-byte) signed (twos-complement) integer.

SignedRational

Exif SRATIONAL type, two SLONGs: numerator and denumerator of a fraction.

TiffFloat

TIFF FLOAT type, single precision (4-byte) IEEE format.

TiffDouble

TIFF DOUBLE type, double precision (8-byte) IEEE format.

TiffIfd

TIFF IFD type, 32-bit (4-byte) unsigned integer.

String

IPTC string type.

Date

IPTC date type.

Time

IPTC time type.

Comment

Exiv2 type for the Exif user comment.

Directory

Exiv2 type for a CIFF directory.

XmpText

XMP text type.

XmpAlt

XMP alternative type.

XmpBag

XMP bag type.

XmpSeq

XMP sequence type.

LangAlt

XMP language alternative type.

Invalid

Invalid type.

Unknown

Unknown type.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.