Struct dropbox_sdk::files::VideoMetadata [−][src]
#[non_exhaustive]pub struct VideoMetadata { pub dimensions: Option<Dimensions>, pub location: Option<GpsCoordinates>, pub time_taken: Option<DropboxTimestamp>, pub duration: Option<u64>, }
This is supported on crate feature
dbx_files
only.Metadata for a video.
Fields (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.dimensions: Option<Dimensions>
Dimension of the photo/video.
location: Option<GpsCoordinates>
The GPS coordinate of the photo/video.
time_taken: Option<DropboxTimestamp>
The timestamp when the photo/video is taken.
duration: Option<u64>
The duration of the video in milliseconds.
Implementations
impl VideoMetadata
[src]
impl VideoMetadata
[src]pub fn with_dimensions(self, value: Dimensions) -> Self
[src]
pub fn with_location(self, value: GpsCoordinates) -> Self
[src]
pub fn with_time_taken(self, value: DropboxTimestamp) -> Self
[src]
pub fn with_duration(self, value: u64) -> Self
[src]
Trait Implementations
impl Clone for VideoMetadata
[src]
impl Clone for VideoMetadata
[src]fn clone(&self) -> VideoMetadata
[src]
fn clone(&self) -> VideoMetadata
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for VideoMetadata
[src]
impl Debug for VideoMetadata
[src]impl Default for VideoMetadata
[src]
impl Default for VideoMetadata
[src]impl<'de> Deserialize<'de> for VideoMetadata
[src]
impl<'de> Deserialize<'de> for VideoMetadata
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<VideoMetadata> for VideoMetadata
[src]
impl PartialEq<VideoMetadata> for VideoMetadata
[src]fn eq(&self, other: &VideoMetadata) -> bool
[src]
fn eq(&self, other: &VideoMetadata) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &VideoMetadata) -> bool
[src]
fn ne(&self, other: &VideoMetadata) -> bool
[src]This method tests for !=
.
impl Serialize for VideoMetadata
[src]
impl Serialize for VideoMetadata
[src]impl StructuralPartialEq for VideoMetadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for VideoMetadata
impl Send for VideoMetadata
impl Sync for VideoMetadata
impl Unpin for VideoMetadata
impl UnwindSafe for VideoMetadata
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,