Skip to main content

DriveApi

Enum DriveApi 

Source
pub enum DriveApi {
Show 63 variants ListFiles, CreateFolder, TaskCheck, BatchQueryMetas, GetFileStatistics(String), ListFileViewRecords(String), CopyFile(String), MoveFile(String), DeleteFile(String), CreateShortcut, UploadFile, UploadPrepare, UploadPart, UploadFinish, DownloadFile(String), CreateImportTask, GetImportTask(String), CreateExportTask, GetExportTask(String), DownloadExportFile(String), UploadMedia, UploadMediaPrepare, UploadMediaPart, UploadMediaFinish, DownloadMedia(String), GetMediaTempDownloadUrls, CreateFileVersion(String), ListFileVersions(String), GetFileVersion(String, String), DeleteFileVersion(String, String), SubscribeFile(String), GetFileSubscribe(String), DeleteFileSubscribe(String), CreatePermissionMember(String), BatchCreatePermissionMember(String), UpdatePermissionMember(String, String), ListPermissionMembers(String), DeletePermissionMember(String, String), TransferOwner(String), AuthPermissionMember(String), UpdatePublicPermission(String), GetPublicPermission(String), CreatePublicPassword(String), UpdatePublicPassword(String), DeletePublicPassword(String), ListFileComments(String), BatchQueryComments(String), PatchComment(String, String), CreateComment(String), GetComment(String, String), ListCommentReplies(String, String), UpdateCommentReply(String, String, String), DeleteCommentReply(String, String, String), GetFileSubscription(String, String), CreateFileSubscription(String), UpdateFileSubscription(String, String), ListFileLikes(String), GetPublicPermissionV2(String), UpdatePublicPermissionV2(String), MediaUploadTasks, MediaUploadTask(String), CreateMediaShareLink(String), GetPublicPassword(String),
}
Expand description

Drive API 端点枚举

Variants§

§

ListFiles

获取文件夹中的文件清单

§

CreateFolder

新建文件夹

§

TaskCheck

查询异步任务状态

§

BatchQueryMetas

获取文件元数据(批量查询)

§

GetFileStatistics(String)

获取文件统计信息

§

ListFileViewRecords(String)

获取文件访问记录

§

CopyFile(String)

复制文件

§

MoveFile(String)

移动文件或文件夹

§

DeleteFile(String)

删除文件或文件夹

§

CreateShortcut

创建文件快捷方式

§

UploadFile

上传文件

§

UploadPrepare

分片上传文件-预上传

§

UploadPart

分片上传文件-上传分片

§

UploadFinish

分片上传文件-完成上传

§

DownloadFile(String)

下载文件

§

CreateImportTask

创建导入任务

§

GetImportTask(String)

查询导入任务结果

§

CreateExportTask

创建导出任务

§

GetExportTask(String)

查询导出任务结果

§

DownloadExportFile(String)

下载导出文件

§

UploadMedia

上传素材

§

UploadMediaPrepare

分片上传素材-预上传

§

UploadMediaPart

分片上传素材-上传分片

§

UploadMediaFinish

分片上传素材-完成上传

§

DownloadMedia(String)

下载素材

§

GetMediaTempDownloadUrls

获取素材临时下载链接

§

CreateFileVersion(String)

创建文档版本

§

ListFileVersions(String)

获取文档版本列表

§

GetFileVersion(String, String)

获取文档版本信息

§

DeleteFileVersion(String, String)

删除文档版本

§

SubscribeFile(String)

订阅云文档事件

§

GetFileSubscribe(String)

查询云文档事件订阅状态

§

DeleteFileSubscribe(String)

取消云文档事件订阅

§

CreatePermissionMember(String)

增加协作者权限

§

BatchCreatePermissionMember(String)

批量增加协作者权限

§

UpdatePermissionMember(String, String)

更新协作者权限

§

ListPermissionMembers(String)

获取云文档协作者

§

DeletePermissionMember(String, String)

移除云文档协作者权限

§

TransferOwner(String)

转移云文档所有者

§

AuthPermissionMember(String)

判断用户云文档权限

§

UpdatePublicPermission(String)

更新云文档权限设置

§

GetPublicPermission(String)

获取云文档权限设置

§

CreatePublicPassword(String)

启用云文档密码

§

UpdatePublicPassword(String)

刷新云文档密码

§

DeletePublicPassword(String)

停用云文档密码

§

ListFileComments(String)

获取云文档所有评论

§

BatchQueryComments(String)

批量获取评论

§

PatchComment(String, String)

解决/恢复评论

§

CreateComment(String)

添加全文评论

§

GetComment(String, String)

获取全文评论

§

ListCommentReplies(String, String)

获取回复信息

§

UpdateCommentReply(String, String, String)

更新回复的内容

§

DeleteCommentReply(String, String, String)

删除回复

§

GetFileSubscription(String, String)

获取订阅状态

§

CreateFileSubscription(String)

创建订阅

§

UpdateFileSubscription(String, String)

更新订阅状态

§

ListFileLikes(String)

获取云文档的点赞者列表

§

GetPublicPermissionV2(String)

获取云文档权限设置(v2)

§

UpdatePublicPermissionV2(String)

更新云文档权限设置(v2)

§

MediaUploadTasks

创建媒体上传任务

§

MediaUploadTask(String)

获取媒体上传任务

创建媒体分享链接

§

GetPublicPassword(String)

获取公开密码

Implementations§

Source§

impl DriveApi

Source

pub fn to_url(&self) -> String

生成对应的 URL

Trait Implementations§

Source§

impl Clone for DriveApi

Source§

fn clone(&self) -> DriveApi

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DriveApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DriveApi

Source§

fn eq(&self, other: &DriveApi) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DriveApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more