pub enum Action {
Show 15 variants
Export {
filter: SessionFilter,
format: String,
output: String,
},
Archive {
filter: SessionFilter,
destination: String,
},
Delete {
filter: SessionFilter,
},
Tag {
filter: SessionFilter,
add_tags: Vec<String>,
remove_tags: Vec<String>,
},
Sync {
provider: String,
direction: SyncDirection,
},
Harvest {
provider: Option<String>,
},
Plugin {
plugin_id: String,
action: String,
params: HashMap<String, Value>,
},
Notify {
channel: NotificationChannel,
message: String,
title: Option<String>,
},
Http {
url: String,
method: String,
headers: HashMap<String, String>,
body: Option<String>,
},
Shell {
command: String,
cwd: Option<String>,
env: HashMap<String, String>,
},
SetVariable {
name: String,
value: Value,
},
If {
condition: Condition,
then: Vec<Action>,
else_: Option<Vec<Action>>,
},
ForEach {
items: String,
as_var: String,
actions: Vec<Action>,
},
Delay {
seconds: u64,
},
Log {
level: LogLevel,
message: String,
},
}Expand description
Action to execute in a workflow
Variants§
Export
Export sessions
Archive
Archive sessions
Delete
Delete sessions
Fields
§
filter: SessionFilterSession filter
Tag
Tag sessions
Sync
Sync sessions
Harvest
Run harvest
Plugin
Execute plugin
Fields
Notify
Send notification
Fields
§
channel: NotificationChannelNotification channel
Http
Make HTTP request
Fields
Shell
Execute shell command
Fields
SetVariable
Set variable
If
Conditional action
Fields
ForEach
Loop action
Fields
Delay
Delay action
Log
Log message
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more