Skip to main content

BitableApiV1

Enum BitableApiV1 

Source
pub enum BitableApiV1 {
Show 52 variants AppCreate, AppCopy(String), AppGet(String), AppUpdate(String), DashboardList(String), DashboardCopy(String, String), BlockWorkflowList(String), WorkflowList(String), WorkflowUpdate(String, String), TableCreate(String), TableBatchCreate(String), TableUpdate(String, String), TableDelete(String, String), TableBatchDelete(String), TableGet(String, String), TableList(String), TablePatch(String, String), FieldCreate(String, String), FieldGroupCreate(String, String), FieldUpdate(String, String, String), FieldDelete(String, String, String), FieldList(String, String), ViewCreate(String, String), ViewUpdate(String, String, String), ViewDelete(String, String, String), ViewGet(String, String, String), ViewList(String, String), ViewPatch(String, String, String), RecordCreate(String, String), RecordBatchCreate(String, String), RecordGet(String, String, String), RecordBatchGet(String, String), RecordUpdate(String, String, String), RecordBatchUpdate(String, String), RecordDelete(String, String, String), RecordBatchDelete(String, String), RecordList(String, String), RecordSearch(String, String), FormGet(String, String, String), FormPatch(String, String, String), FormUpgrade(String, String, String), FormFieldList(String, String, String), FormFieldPatch(String, String, String, String), RoleCreate(String), RoleUpdate(String, String), RoleDelete(String, String), RoleList(String), RoleMemberCreate(String, String), RoleMemberBatchCreate(String, String), RoleMemberDelete(String, String, String), RoleMemberBatchDelete(String, String), RoleMemberList(String, String),
}
Expand description

Bitable API V1 端点枚举(#424 深化了请求语义:method + path + auth 在此集中)。

Variants§

§

AppCreate

App管理相关

§

AppCopy(String)

复制多维表格应用(参数:app_token)

§

AppGet(String)

获取多维表格应用信息(参数:app_token)

§

AppUpdate(String)

更新多维表格应用信息(参数:app_token)

§

DashboardList(String)

列出多维表格仪表盘(参数:app_token)

§

DashboardCopy(String, String)

复制仪表盘(参数:app_token, block_id)

§

BlockWorkflowList(String)

自动化流程

§

WorkflowList(String)

列出自动化工作流(参数:app_token)

§

WorkflowUpdate(String, String)

更新自动化工作流(参数:app_token, workflow_id)

§

TableCreate(String)

表格管理相关

§

TableBatchCreate(String)

批量创建数据表(参数:app_token)

§

TableUpdate(String, String)

更新数据表(参数:app_token, table_id)

§

TableDelete(String, String)

删除数据表(参数:app_token, table_id)

§

TableBatchDelete(String)

批量删除数据表(参数:app_token)

§

TableGet(String, String)

获取数据表信息(参数:app_token, table_id)

§

TableList(String)

列出数据表(参数:app_token)

§

TablePatch(String, String)

增量更新数据表(参数:app_token, table_id)

§

FieldCreate(String, String)

字段管理相关

§

FieldGroupCreate(String, String)

创建字段分组(参数:app_token, table_id)

§

FieldUpdate(String, String, String)

更新字段(参数:app_token, table_id, field_id)

§

FieldDelete(String, String, String)

删除字段(参数:app_token, table_id, field_id)

§

FieldList(String, String)

列出字段(参数:app_token, table_id)

§

ViewCreate(String, String)

视图管理相关

§

ViewUpdate(String, String, String)

更新视图(参数:app_token, table_id, view_id)

§

ViewDelete(String, String, String)

删除视图(参数:app_token, table_id, view_id)

§

ViewGet(String, String, String)

获取视图(参数:app_token, table_id, view_id)

§

ViewList(String, String)

列出视图(参数:app_token, table_id)

§

ViewPatch(String, String, String)

增量更新视图(参数:app_token, table_id, view_id)

§

RecordCreate(String, String)

记录管理相关

§

RecordBatchCreate(String, String)

批量创建记录(参数:app_token, table_id)

§

RecordGet(String, String, String)

获取记录(参数:app_token, table_id, record_id)

§

RecordBatchGet(String, String)

批量获取记录(参数:app_token, table_id)

§

RecordUpdate(String, String, String)

更新记录(参数:app_token, table_id, record_id)

§

RecordBatchUpdate(String, String)

批量更新记录(参数:app_token, table_id)

§

RecordDelete(String, String, String)

删除记录(参数:app_token, table_id, record_id)

§

RecordBatchDelete(String, String)

批量删除记录(参数:app_token, table_id)

§

RecordList(String, String)

列出记录(参数:app_token, table_id)

§

RecordSearch(String, String)

查询记录(参数:app_token, table_id)

§

FormGet(String, String, String)

表单管理相关

§

FormPatch(String, String, String)

更新表单(参数:app_token, table_id, form_id)

§

FormUpgrade(String, String, String)

升级表单(参数:app_token, table_id, form_id)

§

FormFieldList(String, String, String)

列出表单字段(参数:app_token, table_id, form_id)

§

FormFieldPatch(String, String, String, String)

更新表单字段(参数:app_token, table_id, form_id, field_id)

§

RoleCreate(String)

权限管理相关

§

RoleUpdate(String, String)

更新自定义角色(参数:app_token, role_id)

§

RoleDelete(String, String)

删除自定义角色(参数:app_token, role_id)

§

RoleList(String)

列出自定义角色(参数:app_token)

§

RoleMemberCreate(String, String)

新增角色成员(参数:app_token, role_id)

§

RoleMemberBatchCreate(String, String)

批量新增角色成员(参数:app_token, role_id)

§

RoleMemberDelete(String, String, String)

删除角色成员(参数:app_token, role_id, member_id)

§

RoleMemberBatchDelete(String, String)

批量删除角色成员(参数:app_token, role_id)

§

RoleMemberList(String, String)

列出角色成员(参数:app_token, role_id)

Implementations§

Source§

impl BitableApiV1

Source

pub fn to_url(&self) -> String

生成对应的 URL

Source

pub fn to_request<R>(&self) -> ApiRequest<R>

返回配置了正确 HTTP 方法的 ApiRequest(委托到 CatalogEndpoint trait)。

Trait Implementations§

Source§

impl CatalogEndpoint for BitableApiV1

Source§

fn to_url(&self) -> String

返回端点 URL。
Source§

fn method(&self) -> HttpMethod

返回 HTTP 方法。
Source§

fn supported_access_token_types(&self) -> Option<Vec<AccessTokenType>>

稳定的访问令牌要求。 Docs 域的绝大多数端点都同时接受 User 和 Tenant token(#424 系列)。
Source§

fn to_request<R>(&self) -> ApiRequest<R>

构建带正确方法的请求。
Source§

fn to_request_with_url<R>(&self, url: impl Into<String>) -> ApiRequest<R>

使用调用方补充了动态 query 的 URL 构建请求,同时保留 catalog 的 method/auth 语义。
Source§

impl Clone for BitableApiV1

Source§

fn clone(&self) -> BitableApiV1

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 BitableApiV1

Source§

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

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

impl PartialEq for BitableApiV1

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BitableApiV1

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: Sized + 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: Sized + 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