Struct google_photoslibrary1::api::MediaItem [−][src]
Representation of a media item (such as a photo or video) in Google Photos.
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).
- batch create media items (none)
- batch get media items (none)
- get media items (response)
- list media items (none)
- patch media items (request|response)
- search media items (none)
Fields
base_url: Option<String>
A URL to the media item’s bytes. This shouldn’t be used as is. Parameters should be appended to this URL before use. See the developer documentation for a complete list of supported parameters. For example, '=w2048-h1024'
will set the dimensions of a media item of type photo to have a width of 2048 px and height of 1024 px.
contributor_info: Option<ContributorInfo>
Information about the user who created this media item.
description: Option<String>
Description of the media item. This is shown to the user in the item’s info section in the Google Photos app.
filename: Option<String>
Filename of the media item. This is shown to the user in the item’s info section in the Google Photos app.
id: Option<String>
Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.
media_metadata: Option<MediaMetadata>
Metadata related to the media item, such as, height, width, or creation time.
mime_type: Option<String>
MIME type of the media item. For example, image/jpeg
.
product_url: Option<String>
Google Photos URL for the media item. This link is available to the user only if they’re signed in.
Trait Implementations
impl Clone for MediaItem
[src]
impl Debug for MediaItem
[src]
impl Default for MediaItem
[src]
impl<'de> Deserialize<'de> for MediaItem
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for MediaItem
[src]
impl Resource for MediaItem
[src]
impl ResponseResult for MediaItem
[src]
impl Serialize for MediaItem
[src]
Auto Trait Implementations
impl RefUnwindSafe for MediaItem
impl Send for MediaItem
impl Sync for MediaItem
impl Unpin for MediaItem
impl UnwindSafe for MediaItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,