pub struct ModEventLabelBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ModEventLabelBuilder<'a, Empty>
impl<'a> ModEventLabelBuilder<'a, Empty>
Source§impl<'a, S: State> ModEventLabelBuilder<'a, S>
impl<'a, S: State> ModEventLabelBuilder<'a, S>
Source§impl<'a, S> ModEventLabelBuilder<'a, S>
impl<'a, S> ModEventLabelBuilder<'a, S>
Sourcepub fn create_label_vals(
self,
value: impl Into<Vec<CowStr<'a>>>,
) -> ModEventLabelBuilder<'a, SetCreateLabelVals<S>>
pub fn create_label_vals( self, value: impl Into<Vec<CowStr<'a>>>, ) -> ModEventLabelBuilder<'a, SetCreateLabelVals<S>>
Set the createLabelVals field (required)
Source§impl<'a, S: State> ModEventLabelBuilder<'a, S>
impl<'a, S: State> ModEventLabelBuilder<'a, S>
Sourcepub fn duration_in_hours(self, value: impl Into<Option<i64>>) -> Self
pub fn duration_in_hours(self, value: impl Into<Option<i64>>) -> Self
Set the durationInHours field (optional)
Sourcepub fn maybe_duration_in_hours(self, value: Option<i64>) -> Self
pub fn maybe_duration_in_hours(self, value: Option<i64>) -> Self
Set the durationInHours field to an Option value (optional)
Source§impl<'a, S> ModEventLabelBuilder<'a, S>
impl<'a, S> ModEventLabelBuilder<'a, S>
Sourcepub fn negate_label_vals(
self,
value: impl Into<Vec<CowStr<'a>>>,
) -> ModEventLabelBuilder<'a, SetNegateLabelVals<S>>
pub fn negate_label_vals( self, value: impl Into<Vec<CowStr<'a>>>, ) -> ModEventLabelBuilder<'a, SetNegateLabelVals<S>>
Set the negateLabelVals field (required)
Source§impl<'a, S> ModEventLabelBuilder<'a, S>
impl<'a, S> ModEventLabelBuilder<'a, S>
Sourcepub fn build(self) -> ModEventLabel<'a>
pub fn build(self) -> ModEventLabel<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventLabel<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ModEventLabel<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for ModEventLabelBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ModEventLabelBuilder<'a, S>
impl<'a, S> Send for ModEventLabelBuilder<'a, S>
impl<'a, S> Sync for ModEventLabelBuilder<'a, S>
impl<'a, S> Unpin for ModEventLabelBuilder<'a, S>
impl<'a, S> UnwindSafe for ModEventLabelBuilder<'a, S>
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