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§
- Drive
File - A Drive file (or folder, or Google-native document) — the
filesresource returned byfiles.list/files.get. - Drive
Permission - A Drive permission, as returned by
permissions.list(fileId). - File
List Response - Response envelope for
GET /drive/v3/files. - Owner
- An owner of a Drive file, as embedded in
files.list/files.get’sowners[]field (requested via thefieldsparam’sowners(displayName,emailAddress)sub-selector — seefiles_api.rs).