#[non_exhaustive]pub struct GetMetadataResult {
pub metadata_type: MetadataType,
pub metadata: Option<MetadataUnion>,
}Available on crate features
dbx_riviera and sync_routes only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metadata_type: MetadataTypeThe kind of metadata that was extracted for the requested file. Callers should read the
matching field of the metadata oneof.
metadata: Option<MetadataUnion>Implementations§
Source§impl GetMetadataResult
impl GetMetadataResult
pub fn with_metadata_type(self, value: MetadataType) -> Self
pub fn with_metadata(self, value: MetadataUnion) -> Self
Trait Implementations§
Source§impl Clone for GetMetadataResult
impl Clone for GetMetadataResult
Source§fn clone(&self) -> GetMetadataResult
fn clone(&self) -> GetMetadataResult
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 GetMetadataResult
impl Debug for GetMetadataResult
Source§impl Default for GetMetadataResult
impl Default for GetMetadataResult
Source§impl<'de> Deserialize<'de> for GetMetadataResult
impl<'de> Deserialize<'de> for GetMetadataResult
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 GetMetadataResult
impl PartialEq for GetMetadataResult
Source§impl Serialize for GetMetadataResult
impl Serialize for GetMetadataResult
impl StructuralPartialEq for GetMetadataResult
Auto Trait Implementations§
impl Freeze for GetMetadataResult
impl RefUnwindSafe for GetMetadataResult
impl Send for GetMetadataResult
impl Sync for GetMetadataResult
impl Unpin for GetMetadataResult
impl UnsafeUnpin for GetMetadataResult
impl UnwindSafe for GetMetadataResult
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