pub enum ActionTrigger {
Ordinary,
Rest {
route: String,
method: HttpMethod,
},
Form {
route: String,
method: HttpMethod,
redirect: String,
},
Login,
Registration,
Content {
name: String,
},
}Expand description
Action trigger options.
Variants§
Ordinary
HTTP request with the Ordinary data format
Rest
JSON formatted API call
Form
Web Form Submission
Fields
§
method: HttpMethodmethod for the form to use
Login
Login event from Auth
Registration
Registration event from Auth
Content
For when content updates
Trait Implementations§
Source§impl Clone for ActionTrigger
impl Clone for ActionTrigger
Source§fn clone(&self) -> ActionTrigger
fn clone(&self) -> ActionTrigger
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 ActionTrigger
impl Debug for ActionTrigger
Source§impl<'de> Deserialize<'de> for ActionTrigger
impl<'de> Deserialize<'de> for ActionTrigger
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 ActionTrigger
impl RefUnwindSafe for ActionTrigger
impl Send for ActionTrigger
impl Sync for ActionTrigger
impl Unpin for ActionTrigger
impl UnwindSafe for ActionTrigger
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