Struct icinga2_api::api::action::execute_command::ExecuteCommandBuilder
source · [−]pub struct ExecuteCommandBuilder { /* private fields */ }
Expand description
Builder for ExecuteCommand
.
Implementations
sourceimpl ExecuteCommandBuilder
impl ExecuteCommandBuilder
sourcepub fn command_type(&mut self, value: Option<IcingaCommandType>) -> &mut Self
pub fn command_type(&mut self, value: Option<IcingaCommandType>) -> &mut Self
the command type (check, event or notification)
sourcepub fn command(&mut self, value: Option<String>) -> &mut Self
pub fn command(&mut self, value: Option<String>) -> &mut Self
The command to execute. Its type must the same as command_type. It can be a macro string. Default: depending on the command_type it’s either $check_command$, $event_command$ or $notification_command$
sourcepub fn endpoint(&mut self, value: Option<String>) -> &mut Self
pub fn endpoint(&mut self, value: Option<String>) -> &mut Self
The endpoint to execute the command on. It can be a macro string. Default: $command_endpoint$.
sourcepub fn macros(&mut self, value: Option<BTreeMap<String, Value>>) -> &mut Self
pub fn macros(&mut self, value: Option<BTreeMap<String, Value>>) -> &mut Self
Macro overrides. Default: {}
sourcepub fn user(&mut self, value: Option<IcingaUserName>) -> &mut Self
pub fn user(&mut self, value: Option<IcingaUserName>) -> &mut Self
The user used for the notification command.
sourcepub fn notification(&mut self, value: Option<String>) -> &mut Self
pub fn notification(&mut self, value: Option<String>) -> &mut Self
The notification used for the notification command.
Trait Implementations
sourceimpl Clone for ExecuteCommandBuilder
impl Clone for ExecuteCommandBuilder
sourcefn clone(&self) -> ExecuteCommandBuilder
fn clone(&self) -> ExecuteCommandBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExecuteCommandBuilder
impl Debug for ExecuteCommandBuilder
Auto Trait Implementations
impl RefUnwindSafe for ExecuteCommandBuilder
impl Send for ExecuteCommandBuilder
impl Sync for ExecuteCommandBuilder
impl Unpin for ExecuteCommandBuilder
impl UnwindSafe for ExecuteCommandBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more