Struct google_drive_client::DriveFileSearch[][src]

pub struct DriveFileSearch {
    pub corpora: Option<String>,
    pub drive_id: Option<String>,
    pub fields: Option<String>,
    pub order_by: Option<String>,
    pub page_size: Option<usize>,
    pub page_token: Option<String>,
    pub q: Option<String>,
    pub spaces: 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.
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.
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'.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.