pub struct ActionConfig {
pub idx: u8,
pub name: String,
pub lang: ActionLang,
pub dir_path: String,
pub protected: Option<Check>,
pub transactional: Option<bool>,
pub access: Vec<ActionAccessPermission>,
pub accepts: Kind,
pub returns: Kind,
pub triggered_by: Vec<ActionTrigger>,
pub timeout: Option<u16>,
pub wasm_opt: Option<WasmOpt>,
}Expand description
Configuration parameters for Ordinary Actions.
Fields§
§idx: u8Unique index value for action.
name: StringAction name. Must be unique.
lang: ActionLangThe source language the action is written in.
dir_path: StringRelative path to the source directory for the action.
protected: Option<Check>What to check the token fields against. If blank action is public.
transactional: Option<bool>whether or not the storage interactions are executed under a single transaction.
access: Vec<ActionAccessPermission>Which Ordinary Application resources the action has access to.
accepts: KindInput definition for the action.
returns: KindOutput definition for the action.
triggered_by: Vec<ActionTrigger>How this action is called (i.e side effect from DB/Auth, http API call, browser form submission, etc.)
timeout: Option<u16>Max duration for the action.
Unit: seconds
wasm_opt: Option<WasmOpt>Trait Implementations§
Source§impl Clone for ActionConfig
impl Clone for ActionConfig
Source§fn clone(&self) -> ActionConfig
fn clone(&self) -> ActionConfig
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 ActionConfig
impl Debug for ActionConfig
Source§impl<'de> Deserialize<'de> for ActionConfig
impl<'de> Deserialize<'de> for ActionConfig
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 ActionConfig
impl RefUnwindSafe for ActionConfig
impl Send for ActionConfig
impl Sync for ActionConfig
impl Unpin for ActionConfig
impl UnwindSafe for ActionConfig
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