pub struct TableField {
pub field_name: String,
pub field_type: i32,
pub property: Option<Value>,
}Expand description
字段信息
Fields§
§field_name: String字段名称
field_type: i32字段类型
property: Option<Value>字段属性,不同字段类型对应不同的属性结构
Implementations§
Source§impl TableField
impl TableField
Sourcepub fn single_select(name: impl ToString, options: Vec<String>) -> Self
pub fn single_select(name: impl ToString, options: Vec<String>) -> Self
创建单选字段
Sourcepub fn multi_select(name: impl ToString, options: Vec<String>) -> Self
pub fn multi_select(name: impl ToString, options: Vec<String>) -> Self
创建多选字段
Trait Implementations§
Source§impl Clone for TableField
impl Clone for TableField
Source§fn clone(&self) -> TableField
fn clone(&self) -> TableField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableField
impl Debug for TableField
Source§impl<'de> Deserialize<'de> for TableField
impl<'de> Deserialize<'de> for TableField
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 TableField
impl RefUnwindSafe for TableField
impl Send for TableField
impl Sync for TableField
impl Unpin for TableField
impl UnwindSafe for TableField
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