[][src]Struct google_drive_client::DriveFileSearch

pub struct DriveFileSearch {
    pub corpora: Option<String>,
    pub corpus: Option<String>,
    pub drive_id: Option<String>,
    pub fields: Option<String>,
    pub include_items_from_all_drives: Option<bool>,
    pub include_team_drive_items: Option<bool>,
    pub order_by: Option<String>,
    pub page_size: Option<usize>,
    pub page_token: Option<String>,
    pub q: Option<String>,
    pub spaces: Option<String>,
    pub supports_all_drives: Option<bool>,
    pub supports_team_drives: Option<bool>,
    pub team_drive_id: Option<String>,
}

Fields

corpora: Option<String>

Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. *

corpus: Option<String>
Deprecated since v3:

This item is deprecated

The source of files to list. Deprecated: use 'corpora' instead.

Acceptable values are:

"domain": Files shared to the user's domain.
"user": Files owned by or shared to the user.
drive_id: Option<String>

ID of the shared drive to search. *

fields: Option<String>

The paths of the fields you want included in the response. If not specified, the response includes a default set of fields specific to this method. For development you can use the special value * to return all fields, but you'll achieve greater performance by only selecting the fields you need. For more information see the partial responses documentation. *

include_items_from_all_drives: Option<bool>
Deprecated since v3:

This item is deprecated

Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results. (Default: false) *

include_team_drive_items: Option<bool>
Deprecated since v3:

This item is deprecated

Deprecated use includeItemsFromAllDrives instead. (Default: false) *

order_by: Option<String>

A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored. *

page_size: Option<usize>

The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached. Acceptable values are 1 to 1000, inclusive. (Default: 100) *

page_token: Option<String>

The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. *

q: Option<String>

A query for filtering the file results. See the "Search for files" guide for the supported syntax. *

spaces: Option<String>

A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'. *

supports_all_drives: Option<bool>
Deprecated since v3:

This item is deprecated

Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. (Default: false) *

supports_team_drives: Option<bool>
Deprecated since v3:

This item is deprecated

Deprecated use supportsAllDrives instead. (Default: false) *

team_drive_id: Option<String>
Deprecated since v3:

This item is deprecated

Deprecated use driveId instead. *

Trait Implementations

impl Default for DriveFileSearch[src]

impl Clone for DriveFileSearch[src]

impl Debug for DriveFileSearch[src]

impl Serialize for DriveFileSearch[src]

impl<'de> Deserialize<'de> for DriveFileSearch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err