pub enum CcmDocApiOld {
Create,
Meta(String),
SheetMeta(String),
RawContent(String),
Content(String),
BatchUpdate(String),
}Expand description
CCM Doc API Old V1 端点枚举 对应 meta.project = ccm_doc, meta.version = old
Variants§
Create
创建旧版文档
Meta(String)
获取旧版文档元信息
SheetMeta(String)
获取旧版文档中的电子表格元数据
RawContent(String)
获取旧版文档纯文本内容
Content(String)
获取旧版文档富文本内容
BatchUpdate(String)
编辑旧版文档内容
Implementations§
Source§impl CcmDocApiOld
impl CcmDocApiOld
Sourcepub fn to_request<R>(&self) -> ApiRequest<R>
pub fn to_request<R>(&self) -> ApiRequest<R>
返回配置了稳定请求语义的请求。
Trait Implementations§
Source§impl CatalogEndpoint for CcmDocApiOld
impl CatalogEndpoint for CcmDocApiOld
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 CcmDocApiOld
impl Clone for CcmDocApiOld
Source§fn clone(&self) -> CcmDocApiOld
fn clone(&self) -> CcmDocApiOld
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 CcmDocApiOld
impl Debug for CcmDocApiOld
Source§impl PartialEq for CcmDocApiOld
impl PartialEq for CcmDocApiOld
impl StructuralPartialEq for CcmDocApiOld
Auto Trait Implementations§
impl Freeze for CcmDocApiOld
impl RefUnwindSafe for CcmDocApiOld
impl Send for CcmDocApiOld
impl Sync for CcmDocApiOld
impl Unpin for CcmDocApiOld
impl UnsafeUnpin for CcmDocApiOld
impl UnwindSafe for CcmDocApiOld
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