pub enum DataAction {
SetVar(SetVarSpec),
Capture,
InitCol {
collection: String,
key: String,
},
SetUid(String),
SetSid(String),
ExpireVar {
var: String,
seconds: u64,
},
DeprecateVar(String),
Exec(String),
Prepend(String),
Append(String),
}Expand description
Data actions.
Variants§
SetVar(SetVarSpec)
Set variable.
Capture
Capture regex groups.
InitCol
Initialize collection.
SetUid(String)
Set UID.
SetSid(String)
Set SID.
ExpireVar
Expire variable.
DeprecateVar(String)
Deprecate variable.
Exec(String)
Execute script.
Prepend(String)
Prepend response body.
Append(String)
Append response body.
Trait Implementations§
Source§impl Clone for DataAction
impl Clone for DataAction
Source§fn clone(&self) -> DataAction
fn clone(&self) -> DataAction
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 moreAuto Trait Implementations§
impl Freeze for DataAction
impl RefUnwindSafe for DataAction
impl Send for DataAction
impl Sync for DataAction
impl Unpin for DataAction
impl UnwindSafe for DataAction
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