pub struct SlackDispatchActionConfig {
pub trigger_actions_on: Option<Vec<SlackDispatchActionTrigger>>,
}Fields§
§trigger_actions_on: Option<Vec<SlackDispatchActionTrigger>>Implementations§
Source§impl SlackDispatchActionConfig
impl SlackDispatchActionConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackDispatchActionConfig from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn trigger_actions_on(
&mut self,
value: Vec<SlackDispatchActionTrigger>,
) -> &mut Self
pub fn trigger_actions_on( &mut self, value: Vec<SlackDispatchActionTrigger>, ) -> &mut Self
Sets trigger_actions_on to Some(value).
Sourcepub fn reset_trigger_actions_on(&mut self) -> &mut Self
pub fn reset_trigger_actions_on(&mut self) -> &mut Self
Sets trigger_actions_on to None.
Sourcepub fn mopt_trigger_actions_on(
&mut self,
value: Option<Vec<SlackDispatchActionTrigger>>,
) -> &mut Self
pub fn mopt_trigger_actions_on( &mut self, value: Option<Vec<SlackDispatchActionTrigger>>, ) -> &mut Self
Sets trigger_actions_on to the given Option.
Sourcepub fn with_trigger_actions_on(
self,
value: Vec<SlackDispatchActionTrigger>,
) -> Self
pub fn with_trigger_actions_on( self, value: Vec<SlackDispatchActionTrigger>, ) -> Self
Returns self with trigger_actions_on set to Some(value).
Sourcepub fn without_trigger_actions_on(self) -> Self
pub fn without_trigger_actions_on(self) -> Self
Returns self with trigger_actions_on set to None.
Sourcepub fn opt_trigger_actions_on(
self,
value: Option<Vec<SlackDispatchActionTrigger>>,
) -> Self
pub fn opt_trigger_actions_on( self, value: Option<Vec<SlackDispatchActionTrigger>>, ) -> Self
Returns self with trigger_actions_on set to the given Option.
Trait Implementations§
Source§impl Clone for SlackDispatchActionConfig
impl Clone for SlackDispatchActionConfig
Source§impl Debug for SlackDispatchActionConfig
impl Debug for SlackDispatchActionConfig
Source§impl<'de> Deserialize<'de> for SlackDispatchActionConfig
impl<'de> Deserialize<'de> for SlackDispatchActionConfig
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
Source§impl From<SlackDispatchActionConfigInit> for SlackDispatchActionConfig
impl From<SlackDispatchActionConfigInit> for SlackDispatchActionConfig
Source§fn from(value: SlackDispatchActionConfigInit) -> Self
fn from(value: SlackDispatchActionConfigInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackDispatchActionConfig
Auto Trait Implementations§
impl Freeze for SlackDispatchActionConfig
impl RefUnwindSafe for SlackDispatchActionConfig
impl Send for SlackDispatchActionConfig
impl Sync for SlackDispatchActionConfig
impl Unpin for SlackDispatchActionConfig
impl UnsafeUnpin for SlackDispatchActionConfig
impl UnwindSafe for SlackDispatchActionConfig
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