pub enum DocsApiV1 {
ContentGet,
}Expand description
Docs API V1 端点枚举
Variants§
ContentGet
获取云文档内容
Implementations§
Source§impl DocsApiV1
impl DocsApiV1
Sourcepub fn to_request<R>(&self) -> ApiRequest<R>
pub fn to_request<R>(&self) -> ApiRequest<R>
返回配置了稳定请求语义的请求。
Trait Implementations§
Source§impl CatalogEndpoint for DocsApiV1
impl CatalogEndpoint for DocsApiV1
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 语义。
impl StructuralPartialEq for DocsApiV1
Auto Trait Implementations§
impl Freeze for DocsApiV1
impl RefUnwindSafe for DocsApiV1
impl Send for DocsApiV1
impl Sync for DocsApiV1
impl Unpin for DocsApiV1
impl UnsafeUnpin for DocsApiV1
impl UnwindSafe for DocsApiV1
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