Skip to main content

Module types

Module types 

Source
Expand description

Wire types for the Drive v3 REST API.

Field naming follows Drive’s camelCase JSON via per-field #[serde(rename = "...")], mirroring src/gmail/types.rs. size is Drive’s own wire format: a decimal string, not a JSON number — present only for binary files with actual byte content; absent for folders and Google-native documents (Docs/Sheets/Slides/…), which have no fixed byte size. The content-hash fields (md5Checksum/ sha1Checksum/sha256Checksum) share that same binary-content-only availability but, unlike size, are plain lowercase hex strings with no wire-format quirk of their own.

Structs§

DriveFile
A Drive file (or folder, or Google-native document) — the files resource returned by files.list/files.get.
DrivePermission
A Drive permission, as returned by permissions.list(fileId).
FileListResponse
Response envelope for GET /drive/v3/files.
Owner
An owner of a Drive file, as embedded in files.list/files.get’s owners[] field (requested via the fields param’s owners(displayName,emailAddress) sub-selector — see files_api.rs).