pub struct TableData {
pub name: String,
pub default_view_name: Option<String>,
pub fields: Option<Vec<TableField>>,
}Expand description
数据表数据
Fields§
§name: String数据表名称
default_view_name: Option<String>数据表的默认视图名称,不填则默认为“数据表“
fields: Option<Vec<TableField>>数据表初始字段
Implementations§
Source§impl TableData
impl TableData
Sourcepub fn with_default_view_name(self, view_name: impl ToString) -> Self
pub fn with_default_view_name(self, view_name: impl ToString) -> Self
设置默认视图名称
Sourcepub fn with_fields(self, fields: Vec<TableField>) -> Self
pub fn with_fields(self, fields: Vec<TableField>) -> Self
设置初始字段
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableData
impl<'de> Deserialize<'de> for TableData
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 TableData
impl RefUnwindSafe for TableData
impl Send for TableData
impl Sync for TableData
impl Unpin for TableData
impl UnwindSafe for TableData
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