pub struct ExtractedMetadata {
pub taken_time: Option<Timestamp>,
pub taken_time_source: FoldSource,
pub gps: Option<GeoPoint>,
pub gps_source: FoldSource,
pub description: Option<String>,
pub favorite: bool,
pub albums: Vec<String>,
}Expand description
The out-of-band metadata an adapter folds for one media entry, with the precedence already
resolved. This is the artifact the Takeout mapping table validates, one field per rule, and
what sidecar_enrichment maps onto the
signed sidecar’s fields at import.
Fields§
§taken_time: Option<Timestamp>Capture time: embedded EXIF DateTimeOriginal if present, else the exporter’s taken-time.
taken_time_source: FoldSourceWhich side taken_time came from.
gps: Option<GeoPoint>GPS fix: embedded EXIF GPS if present, else the exporter’s coordinates.
gps_source: FoldSourceWhich side gps came from.
description: Option<String>User-typed description — exporter-authoritative (the file bytes never carried it).
favorite: boolFavorite/starred flag — exporter-authoritative.
albums: Vec<String>Album memberships this entry belongs to — exporter-authoritative. Deterministically ordered (sorted, de-duplicated).
Trait Implementations§
Source§impl Clone for ExtractedMetadata
impl Clone for ExtractedMetadata
Source§fn clone(&self) -> ExtractedMetadata
fn clone(&self) -> ExtractedMetadata
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 ExtractedMetadata
impl Debug for ExtractedMetadata
Source§impl Default for ExtractedMetadata
impl Default for ExtractedMetadata
Source§impl PartialEq for ExtractedMetadata
impl PartialEq for ExtractedMetadata
Source§fn eq(&self, other: &ExtractedMetadata) -> bool
fn eq(&self, other: &ExtractedMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtractedMetadata
Auto Trait Implementations§
impl Freeze for ExtractedMetadata
impl RefUnwindSafe for ExtractedMetadata
impl Send for ExtractedMetadata
impl Sync for ExtractedMetadata
impl Unpin for ExtractedMetadata
impl UnsafeUnpin for ExtractedMetadata
impl UnwindSafe for ExtractedMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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