pub struct ExecuteCommandBuilder { /* private fields */ }
Expand description
Builder for ExecuteCommand
.
Implementations§
Source§impl 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§
Source§impl Clone for ExecuteCommandBuilder
impl Clone for ExecuteCommandBuilder
Source§fn clone(&self) -> ExecuteCommandBuilder
fn clone(&self) -> ExecuteCommandBuilder
Returns a copy 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 ExecuteCommandBuilder
impl Debug for ExecuteCommandBuilder
Auto Trait Implementations§
impl Freeze for ExecuteCommandBuilder
impl RefUnwindSafe for ExecuteCommandBuilder
impl Send for ExecuteCommandBuilder
impl Sync for ExecuteCommandBuilder
impl Unpin for ExecuteCommandBuilder
impl UnwindSafe for ExecuteCommandBuilder
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