Struct google_photoslibrary1::SearchMediaItemsRequest [−][src]
pub struct SearchMediaItemsRequest { pub album_id: Option<String>, pub page_size: Option<i32>, pub filters: Option<Filters>, pub page_token: Option<String>, }
Request to search for media items in a user's library.
If the album id is specified, this call will return the list of media items in the album. If neither filters nor album id are specified, this call will return all media items in a user's Google Photos library.
If filters are specified, this call will return all media items in the user's library that fulfill the filter criteria.
Filters and album id must not both be set, as this will result in an invalid request.
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).
- search media items (request)
Fields
album_id: Option<String>
Identifier of an album. If populated, lists all media items in specified album. Can't set in conjunction with any filters.
page_size: Option<i32>
Maximum number of media items to return in the response. The default number
of media items to return at a time is 25. The maximum
pageSize
is 100.
filters: Option<Filters>
Filters to apply to the request. Can't be set in conjunction with an
albumId
.
page_token: Option<String>
A continuation token to get the next page of the results. Adding this to
the request returns the rows after the pageToken
. The pageToken
should
be the value returned in the nextPageToken
parameter in the response to
the searchMediaItems
request.
Trait Implementations
impl Default for SearchMediaItemsRequest
[src]
impl Default for SearchMediaItemsRequest
fn default() -> SearchMediaItemsRequest
[src]
fn default() -> SearchMediaItemsRequest
Returns the "default value" for a type. Read more
impl Clone for SearchMediaItemsRequest
[src]
impl Clone for SearchMediaItemsRequest
fn clone(&self) -> SearchMediaItemsRequest
[src]
fn clone(&self) -> SearchMediaItemsRequest
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 SearchMediaItemsRequest
[src]
impl Debug for SearchMediaItemsRequest
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 RequestValue for SearchMediaItemsRequest
[src]
impl RequestValue for SearchMediaItemsRequest
Auto Trait Implementations
impl Send for SearchMediaItemsRequest
impl Send for SearchMediaItemsRequest
impl Sync for SearchMediaItemsRequest
impl Sync for SearchMediaItemsRequest