ActionTemp

Struct ActionTemp 

Source
pub struct ActionTemp {
    pub model: ModelTemp,
}
Expand description

模型模版

Fields§

§model: ModelTemp

Trait Implementations§

Source§

impl Action for ActionTemp

Source§

fn title(&mut self) -> &'static str

动标题
Source§

fn index(&mut self, _header: JsonValue, _request: JsonValue) -> Response

Source§

fn author(&mut self) -> &'static str

作者
Source§

fn api(&mut self) -> String

动作api
Source§

fn mode(&mut self) -> Vec<&'static str>

支持模式 org 企业模式 admin 平台模式 user 普通模式
Source§

fn icon(&mut self) -> &'static str

菜单 icon
Source§

fn menu_sort(&mut self) -> usize

菜单排序
Source§

fn openapi(&mut self) -> bool

是否开放接口
Source§

fn token(&mut self) -> bool

是否使用密钥
Source§

fn describe(&mut self) -> &'static str

API描述
Source§

fn public(&mut self) -> bool

是否公开
Source§

fn auth(&mut self) -> bool

是否权限组显示
Source§

fn interface_type(&mut self) -> InterfaceType

接口类型 btn api menu
Source§

fn dependent(&mut self) -> Vec<&'static str>

依赖接口
Source§

fn params(&mut self) -> JsonValue

请求参数入口
Source§

fn _check(&mut self, request: JsonValue) -> (bool, String, JsonValue)

检测
Source§

fn run(&mut self, header: JsonValue, request: JsonValue) -> Response

执行参数入口
Source§

fn get( &mut self, header: JsonValue, request: JsonValue, ) -> Result<JsonValue, String>

执行参数入口
Source§

fn success(&mut self, data: JsonValue, msg: &str) -> Response

业务成功返回
Source§

fn fail(&mut self, msg: &str) -> Response

业务错误返回
Source§

fn error(&mut self, code: usize, msg: String) -> Response

业务错误返回
Source§

fn notify(&mut self, msg: &str, btn_name: &str, path: &str) -> Response

Source§

fn login(&mut self, msg: &str) -> Response

登陆返回
Source§

fn download(&mut self, filename: &str) -> Response

下载返回
Source§

fn download_delete_dir(&mut self, filename: &str) -> Response

下载并删除文件所在目录
Source§

fn redirect(&mut self, url: &str) -> Response

重定型返回
Source§

fn tools(&mut self) -> Tools

获取工具集合
Source§

fn menu_info(&mut self, title: &str) -> JsonValue

获取菜单信息 Read more
Source§

fn btn_info_data(&mut self, title: &str) -> JsonValue

Source§

fn btn_info( &mut self, title: &str, mode: BtnMode, color: BtnColor, match_condition: Vec<Vec<&str>>, ) -> JsonValue

获取按钮信息 Read more
Source§

fn btn_info_to( &mut self, title: &str, path: &str, mode: BtnMode, color: BtnColor, match_condition: Vec<Vec<&str>>, ) -> JsonValue

获取跳转按钮信息 Read more
Source§

fn btn_custom_info(&mut self, title: &str) -> JsonValue

获取自定义页面按钮信息 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, 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.