Struct google_drive::GoogleDrive[][src]

pub struct GoogleDrive { /* fields omitted */ }
Expand description

Entrypoint for interacting with the Google Drive API.

Implementations

Create a new Drive client struct. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Key and Secret your requests will work.

Get the currently set authorization token.

Download a file stored on Google Drive by it’s ID.

Get a file’s contents by it’s ID. Only works for Google Docs.

Get a file by it’s ID.

Get a file by it’s name.

Get a folder by it’s name.

List drives.

Get a drive by it’s name.

Create a folder.

Create or update a file in a drive. If the file already exists, it will update it. If the file does not exist, it will create it.

Delete a file by its name.

Upload an object to a cloud storage bucket.

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.

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.