pub struct ModEventLabelBuilder<'a, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'a, S: State> ModEventLabelBuilder<'a, S>
impl<'a, S: State> ModEventLabelBuilder<'a, S>
Sourcepub fn build(self) -> ModEventLabel<'a>where
S: IsComplete,
pub fn build(self) -> ModEventLabel<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn comment(
self,
value: impl Into<CowStr<'a>>,
) -> ModEventLabelBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
pub fn comment(
self,
value: impl Into<CowStr<'a>>,
) -> ModEventLabelBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
Sourcepub fn maybe_comment(
self,
value: Option<impl Into<CowStr<'a>>>,
) -> ModEventLabelBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
pub fn maybe_comment(
self,
value: Option<impl Into<CowStr<'a>>>,
) -> ModEventLabelBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
Sourcepub fn create_label_vals(
self,
value: Vec<CowStr<'a>>,
) -> ModEventLabelBuilder<'a, SetCreateLabelVals<S>>where
S::CreateLabelVals: IsUnset,
pub fn create_label_vals(
self,
value: Vec<CowStr<'a>>,
) -> ModEventLabelBuilder<'a, SetCreateLabelVals<S>>where
S::CreateLabelVals: IsUnset,
Required.
Sourcepub fn duration_in_hours(
self,
value: impl Into<i64>,
) -> ModEventLabelBuilder<'a, SetDurationInHours<S>>where
S::DurationInHours: IsUnset,
pub fn duration_in_hours(
self,
value: impl Into<i64>,
) -> ModEventLabelBuilder<'a, SetDurationInHours<S>>where
S::DurationInHours: IsUnset,
Sourcepub fn maybe_duration_in_hours(
self,
value: Option<impl Into<i64>>,
) -> ModEventLabelBuilder<'a, SetDurationInHours<S>>where
S::DurationInHours: IsUnset,
pub fn maybe_duration_in_hours(
self,
value: Option<impl Into<i64>>,
) -> ModEventLabelBuilder<'a, SetDurationInHours<S>>where
S::DurationInHours: IsUnset,
Sourcepub fn negate_label_vals(
self,
value: Vec<CowStr<'a>>,
) -> ModEventLabelBuilder<'a, SetNegateLabelVals<S>>where
S::NegateLabelVals: IsUnset,
pub fn negate_label_vals(
self,
value: Vec<CowStr<'a>>,
) -> ModEventLabelBuilder<'a, SetNegateLabelVals<S>>where
S::NegateLabelVals: IsUnset,
Required.
Sourcepub fn extra_data(
self,
value: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventLabelBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
pub fn extra_data(
self,
value: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventLabelBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
Sourcepub fn maybe_extra_data(
self,
value: Option<BTreeMap<SmolStr, Data<'a>>>,
) -> ModEventLabelBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
pub fn maybe_extra_data(
self,
value: Option<BTreeMap<SmolStr, Data<'a>>>,
) -> ModEventLabelBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
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