Struct open_lark::service::bitable::v1::AppTableField

source ·
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:自动编号
§is_hidden: Option<bool>

是否是隐藏字段

Trait Implementations§

source§

impl Debug for AppTableField

source§

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

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

impl<'de> Deserialize<'de> for AppTableField

source§

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§

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> 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> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,