pub struct AppTableField {
pub field_name: String,
pub type: FieldType,
pub property: Option<AppTableFieldProperty>,
pub description: Option<AppTableFieldDescription>,
pub is_primary: bool,
pub field_id: String,
pub ui_type: UiType,
pub is_hidden: Option<bool>,
}Expand description
字段信息
Fields§
§field_name: String多维表格字段名
请注意:
名称中的首尾空格将会被去除。
type: FieldType多维表格字段类型
- 1:多行文本
- 2:数字
- 3:单选
- 4:多选
- 5:日期
- 7:复选框
- 11:人员
- 13:电话号码
- 15:超链接
- 17:附件
- 18:关联
- 20:公式
- 21:双向关联
- 22:地理位置
- 23:群组
- 1001:创建时间
- 1002:最后更新时间
- 1003:创建人
- 1004:修改人
- 1005:自动编号
property: Option<AppTableFieldProperty>字段属性
description: Option<AppTableFieldDescription>字段的描述
is_primary: bool是否是索引列
field_id: String多维表格字段 id
ui_type: UiType字段在界面上的展示类型,例如进度字段是数字的一种展示形态
可选值有:
- Text:多行文本
- Barcode:条码
- Number:数字
- Progress:进度
- Currency:货币
- Rating:评分
- SingleSelect:单选
- MultiSelect:多选
- DateTime:日期
- Checkbox:复选框
- User:人员
- GroupChat:群组
- Phone:电话号码
- Url:超链接
- Attachment:附件
- SingleLink:单向关联
- Formula:公式
- DuplexLink:双向关联
- Location:地理位置
- CreatedTime:创建时间
- ModifiedTime:最后更新时间
- CreatedUser:创建人
- ModifiedUser:修改人
- AutoNumber:自动编号
是否是隐藏字段
Trait Implementations§
source§impl Debug for AppTableField
impl Debug for AppTableField
source§impl<'de> Deserialize<'de> for AppTableField
impl<'de> Deserialize<'de> for AppTableField
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppTableField
impl RefUnwindSafe for AppTableField
impl Send for AppTableField
impl Sync for AppTableField
impl Unpin for AppTableField
impl UnwindSafe for AppTableField
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