pub enum BaseApiV2 {
RoleCreate(String),
RoleUpdate(String, String),
RoleList(String),
}Expand description
Base API V2 端点枚举
Variants§
Implementations§
Trait Implementations§
Source§impl CatalogEndpoint for BaseApiV2
impl CatalogEndpoint for BaseApiV2
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 BaseApiV2
Auto Trait Implementations§
impl Freeze for BaseApiV2
impl RefUnwindSafe for BaseApiV2
impl Send for BaseApiV2
impl Sync for BaseApiV2
impl Unpin for BaseApiV2
impl UnsafeUnpin for BaseApiV2
impl UnwindSafe for BaseApiV2
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