#[non_exhaustive]pub enum MetadataUnion {
Exif(ApiExifMetadata),
Media(ApiMediaMetadata),
Pdf(ApiPdfMetadata),
Office(ApiOfficeMetadata),
Other,
}Available on crate features
dbx_riviera and sync_routes only.Expand description
Exactly one variant is populated, corresponding to metadata_type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exif(ApiExifMetadata)
Media(ApiMediaMetadata)
Pdf(ApiPdfMetadata)
Office(ApiOfficeMetadata)
Other
Catch-all used for unrecognized values returned from the server. Encountering this value typically indicates that this SDK version is out of date.
Trait Implementations§
Source§impl Clone for MetadataUnion
impl Clone for MetadataUnion
Source§fn clone(&self) -> MetadataUnion
fn clone(&self) -> MetadataUnion
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 MetadataUnion
impl Debug for MetadataUnion
Source§impl<'de> Deserialize<'de> for MetadataUnion
impl<'de> Deserialize<'de> for MetadataUnion
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetadataUnion
impl PartialEq for MetadataUnion
Source§impl Serialize for MetadataUnion
impl Serialize for MetadataUnion
impl StructuralPartialEq for MetadataUnion
Auto Trait Implementations§
impl Freeze for MetadataUnion
impl RefUnwindSafe for MetadataUnion
impl Send for MetadataUnion
impl Sync for MetadataUnion
impl Unpin for MetadataUnion
impl UnsafeUnpin for MetadataUnion
impl UnwindSafe for MetadataUnion
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