pub enum CcmDriveExplorerApi {
RootFolderMeta,
FolderMeta(String),
File(String),
FileCopy(String),
FileDocs(String),
FileSpreadsheets(String),
FolderChildren(String),
Folder,
}Expand description
CCM Drive Explorer API V1 端点枚举 对应 meta.project = ccm_drive_explorer, meta.version = v1
Variants§
RootFolderMeta
获取根目录元数据
FolderMeta(String)
获取文件夹元数据
File(String)
获取文件元数据
FileCopy(String)
复制文件
FileDocs(String)
获取文档文件信息
FileSpreadsheets(String)
获取表格文件信息
FolderChildren(String)
获取文件夹子内容
Folder
创建文件夹
Implementations§
Source§impl CcmDriveExplorerApi
impl CcmDriveExplorerApi
Sourcepub fn to_url_with_params(&self, params: &[(&str, String)]) -> String
pub fn to_url_with_params(&self, params: &[(&str, String)]) -> String
生成带参数的 URL
Sourcepub fn to_request<R>(&self) -> ApiRequest<R>
pub fn to_request<R>(&self) -> ApiRequest<R>
返回配置了稳定请求语义的请求。
Trait Implementations§
Source§impl CatalogEndpoint for CcmDriveExplorerApi
impl CatalogEndpoint for CcmDriveExplorerApi
Source§fn method(&self) -> HttpMethod
fn method(&self) -> HttpMethod
返回 HTTP 方法。
Source§fn supported_access_token_types(&self) -> Option<Vec<AccessTokenType>>
fn supported_access_token_types(&self) -> Option<Vec<AccessTokenType>>
稳定的访问令牌要求。
Docs 域的绝大多数端点都同时接受 User 和 Tenant token(#424 系列)。
Source§fn to_request<R>(&self) -> ApiRequest<R>
fn to_request<R>(&self) -> ApiRequest<R>
构建带正确方法的请求。
Source§fn to_request_with_url<R>(&self, url: impl Into<String>) -> ApiRequest<R>
fn to_request_with_url<R>(&self, url: impl Into<String>) -> ApiRequest<R>
使用调用方补充了动态 query 的 URL 构建请求,同时保留 catalog 的 method/auth 语义。
Source§impl Clone for CcmDriveExplorerApi
impl Clone for CcmDriveExplorerApi
Source§fn clone(&self) -> CcmDriveExplorerApi
fn clone(&self) -> CcmDriveExplorerApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CcmDriveExplorerApi
impl Debug for CcmDriveExplorerApi
Source§impl PartialEq for CcmDriveExplorerApi
impl PartialEq for CcmDriveExplorerApi
impl StructuralPartialEq for CcmDriveExplorerApi
Auto Trait Implementations§
impl Freeze for CcmDriveExplorerApi
impl RefUnwindSafe for CcmDriveExplorerApi
impl Send for CcmDriveExplorerApi
impl Sync for CcmDriveExplorerApi
impl Unpin for CcmDriveExplorerApi
impl UnsafeUnpin for CcmDriveExplorerApi
impl UnwindSafe for CcmDriveExplorerApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more