pub struct ModelTemp {
pub addon: AddonTemp,
}Expand description
模型模版
Fields§
§addon: AddonTempTrait Implementations§
Source§impl Model for ModelTemp
impl Model for ModelTemp
Source§fn primary_key(&mut self) -> &'static str
fn primary_key(&mut self) -> &'static str
主键
Source§fn partition_columns(&mut self) -> JsonValue
fn partition_columns(&mut self) -> JsonValue
分区配置
*列名
*分区key
*实例 array![str, array![range1, range2, range3…]]
*如果在已有分区的情况下想要修改分区的参照列,先要将当前分区代码删除后刷库,然后写新的分区规则再刷库
Source§fn table_fields(&mut self) -> JsonValue
fn table_fields(&mut self) -> JsonValue
前端搜索字段
Source§fn table_tree_fields(&mut self) -> JsonValue
fn table_tree_fields(&mut self) -> JsonValue
前端-树型-搜索字段
Source§fn btn_data(
&mut self,
title: &str,
action: Box<dyn Action>,
mode: BtnMode,
color: BtnColor,
match_condition: Vec<Vec<&str>>,
) -> JsonValue
fn btn_data( &mut self, title: &str, action: Box<dyn Action>, mode: BtnMode, color: BtnColor, match_condition: Vec<Vec<&str>>, ) -> JsonValue
前端-按钮数据
Source§fn table_select_fields(&mut self) -> JsonValue
fn table_select_fields(&mut self) -> JsonValue
前端 关联搜索字段
Source§fn dict_select_fields(&mut self) -> JsonValue
fn dict_select_fields(&mut self) -> JsonValue
前端 关联字典搜索字段
Auto Trait Implementations§
impl Freeze for ModelTemp
impl RefUnwindSafe for ModelTemp
impl Send for ModelTemp
impl Sync for ModelTemp
impl Unpin for ModelTemp
impl UnwindSafe for ModelTemp
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