Struct google_plusdomains1::api::Media
source · [−]pub struct Media {Show 18 fields
pub author: Option<MediaAuthor>,
pub display_name: Option<String>,
pub etag: Option<String>,
pub exif: Option<MediaExif>,
pub height: Option<u32>,
pub id: Option<String>,
pub kind: Option<String>,
pub media_created_time: Option<String>,
pub media_url: Option<String>,
pub published: Option<String>,
pub size_bytes: Option<String>,
pub streams: Option<Vec<Videostream>>,
pub summary: Option<String>,
pub updated: Option<String>,
pub url: Option<String>,
pub video_duration: Option<String>,
pub video_status: Option<String>,
pub width: Option<u32>,
}
Expand description
There is no detailed description.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- insert media (request|response)
Fields
The person who uploaded this media.
display_name: Option<String>
The display name for this media.
etag: Option<String>
ETag of this response for caching purposes.
exif: Option<MediaExif>
Exif information of the media item.
height: Option<u32>
The height in pixels of the original image.
id: Option<String>
ID of this media, which is generated by the API.
kind: Option<String>
The type of resource.
media_created_time: Option<String>
The time at which this media was originally created in UTC. Formatted as an RFC 3339 timestamp that matches this example: 2010-11-25T14:30:27.655Z
media_url: Option<String>
The URL of this photo or video’s still image.
published: Option<String>
The time at which this media was uploaded. Formatted as an RFC 3339 timestamp.
size_bytes: Option<String>
The size in bytes of this video.
streams: Option<Vec<Videostream>>
The list of video streams for this video. There might be several different streams available for a single video, either Flash or MPEG, of various sizes
summary: Option<String>
A description, or caption, for this media.
updated: Option<String>
The time at which this media was last updated. This includes changes to media metadata. Formatted as an RFC 3339 timestamp.
url: Option<String>
The URL for the page that hosts this media.
video_duration: Option<String>
The duration in milliseconds of this video.
video_status: Option<String>
The encoding status of this video. Possible values are:
- “UPLOADING” - Not all the video bytes have been received.
- “PENDING” - Video not yet processed.
- “FAILED” - Video processing failed.
- “READY” - A single video stream is playable.
- “FINAL” - All video streams are playable.
width: Option<u32>
The width in pixels of the original image.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Media
impl<'de> Deserialize<'de> for Media
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl RequestValue for Media
impl ResponseResult for Media
Auto Trait Implementations
impl RefUnwindSafe for Media
impl Send for Media
impl Sync for Media
impl Unpin for Media
impl UnwindSafe for Media
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more