pub struct Tag {
pub id: TagId,
pub name: String,
pub description: String,
pub group: TagGroup,
pub raw_value: Value,
pub print_value: String,
pub priority: i32,
}Expand description
A resolved metadata tag with its value and metadata.
Fields§
§id: TagIdTag identifier (numeric for EXIF/IPTC, string key for XMP)
name: StringCanonical tag name (e.g., “ExposureTime”, “Artist”, “GPSLatitude”)
description: StringHuman-readable description
group: TagGroupGroup hierarchy
raw_value: ValueThe raw value
print_value: StringHuman-readable print conversion of the value
priority: i32Priority for conflict resolution (higher wins)
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn priority_rank(&self) -> i32
pub fn priority_rank(&self) -> i32
The priority as a plain comparable number, with
PRIORITY_EXPLICIT_ZERO folded back to the 0 it stands for.
Use it wherever priorities are merely ranked against each other. Only
the duplicate arbitration needs to tell a table-stated 0 from an
unstated priority, and it reads Tag::priority directly.
Sourcepub fn display_value(&self, numeric: bool) -> String
pub fn display_value(&self, numeric: bool) -> String
Get the display value respecting the print_conv option.
When numeric is true (-n flag), returns the raw value.
When numeric is false, returns the print-converted value.