Struct google_photoslibrary1::api::MediaTypeFilter
source · pub struct MediaTypeFilter {
pub media_types: Option<Vec<String>>,
}
Expand description
This filter defines the type of media items to be returned, for example, videos or photos. Only one media type is supported.
This type is not used in any activity, and only used as part of another schema.
Fields§
§media_types: Option<Vec<String>>
The types of media items to be included. This field should be populated with only one media type. If you specify multiple media types, it results in an error.
Trait Implementations§
source§impl Clone for MediaTypeFilter
impl Clone for MediaTypeFilter
source§fn clone(&self) -> MediaTypeFilter
fn clone(&self) -> MediaTypeFilter
Returns a copy of the value. Read more
1.0.0 · 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 MediaTypeFilter
impl Debug for MediaTypeFilter
source§impl Default for MediaTypeFilter
impl Default for MediaTypeFilter
source§fn default() -> MediaTypeFilter
fn default() -> MediaTypeFilter
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MediaTypeFilter
impl<'de> Deserialize<'de> for MediaTypeFilter
source§fn 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
source§impl Serialize for MediaTypeFilter
impl Serialize for MediaTypeFilter
impl Part for MediaTypeFilter
Auto Trait Implementations§
impl RefUnwindSafe for MediaTypeFilter
impl Send for MediaTypeFilter
impl Sync for MediaTypeFilter
impl Unpin for MediaTypeFilter
impl UnwindSafe for MediaTypeFilter
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