Struct google_photoslibrary1::ContentFilter [−][src]
pub struct ContentFilter { pub excluded_content_categories: Option<Vec<String>>, pub included_content_categories: Option<Vec<String>>, }
This filter allows you to return media items based on the content type.
It's possible to specify a list of categories to include, and/or a list of categories to exclude. Within each list, the categories are combined with an OR.
The content filter includedContentCategories
: [c1, c2, c3] would get media
items that contain (c1 OR c2 OR c3).
The content filter excludedContentCategories
: [c1, c2, c3] would NOT get
media items that contain (c1 OR c2 OR c3).
You can also include some categories while excluding others, as in this
example: includedContentCategories
: [c1, c2], excludedContentCategories
:
[c3, c4]
The previous example would get media items that contain (c1 OR c2) AND NOT
(c3 OR c4). A category that appears in includedContentategories
must not
appear in excludedContentCategories
.
This type is not used in any activity, and only used as part of another schema.
Fields
excluded_content_categories: Option<Vec<String>>
The set of categories which are not to be included in the media item search
results. The items in the set are ORed. There's a maximum of 10
excludedContentCategories
per request.
included_content_categories: Option<Vec<String>>
The set of categories to be included in the media item search results.
The items in the set are ORed. There's a maximum of 10
includedContentCategories
per request.
Trait Implementations
impl Default for ContentFilter
[src]
impl Default for ContentFilter
fn default() -> ContentFilter
[src]
fn default() -> ContentFilter
Returns the "default value" for a type. Read more
impl Clone for ContentFilter
[src]
impl Clone for ContentFilter
fn clone(&self) -> ContentFilter
[src]
fn clone(&self) -> ContentFilter
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)
Performs copy-assignment from source
. Read more
impl Debug for ContentFilter
[src]
impl Debug for ContentFilter
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for ContentFilter
[src]
impl Part for ContentFilter
Auto Trait Implementations
impl Send for ContentFilter
impl Send for ContentFilter
impl Sync for ContentFilter
impl Sync for ContentFilter