pub struct TocSelectBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TocSelectBuilder<'a>
impl<'a> TocSelectBuilder<'a>
pub fn seqnum(self, seqnum: Seqnum) -> Self
pub fn seqnum_if(self, seqnum: Seqnum, predicate: bool) -> Self
pub fn seqnum_if_some(self, seqnum: Option<Seqnum>) -> Self
pub fn running_time_offset(self, running_time_offset: i64) -> Self
pub fn running_time_offset_if( self, running_time_offset: i64, predicate: bool, ) -> Self
pub fn running_time_offset_if_some( self, running_time_offset: Option<i64>, ) -> Self
Sourcepub fn other_field(self, name: &'a str, value: impl ToSendValue) -> Self
pub fn other_field(self, name: &'a str, value: impl ToSendValue) -> Self
Sets field name to the given value value.
Overrides any default or previously defined value for name.
Sourcepub fn other_field_if(
self,
name: &'a str,
value: impl ToSendValue,
predicate: bool,
) -> Self
pub fn other_field_if( self, name: &'a str, value: impl ToSendValue, predicate: bool, ) -> Self
Sets field name to the given inner value if the predicate evaluates to true.
This has no effect if the predicate evaluates to false,
i.e. default or previous value for name is kept.
Sourcepub fn other_field_if_some(
self,
name: &'a str,
value: Option<impl ToSendValue>,
) -> Self
pub fn other_field_if_some( self, name: &'a str, value: Option<impl ToSendValue>, ) -> Self
Sets field name to the given inner value if value is Some.
This has no effect if the value is None, i.e. default or previous value for name is kept.
Sourcepub fn other_field_from_iter<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>(
self,
name: &'a str,
iter: impl IntoIterator<Item = I>,
) -> Self
pub fn other_field_from_iter<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>( self, name: &'a str, iter: impl IntoIterator<Item = I>, ) -> Self
Sets field name using the given ValueType V built from iter’s the Items.
Overrides any default or previously defined value for name.
Sourcepub fn other_field_if_not_empty<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>(
self,
name: &'a str,
iter: impl IntoIterator<Item = I>,
) -> Self
pub fn other_field_if_not_empty<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>( self, name: &'a str, iter: impl IntoIterator<Item = I>, ) -> Self
Sets field name using the given ValueType V built from iter’s Items, if iter` is not empty.
This has no effect if iter is empty, i.e. previous value for name is unchanged.
pub fn build(self) -> Event
Auto Trait Implementations§
impl<'a> Freeze for TocSelectBuilder<'a>
impl<'a> RefUnwindSafe for TocSelectBuilder<'a>
impl<'a> Send for TocSelectBuilder<'a>
impl<'a> !Sync for TocSelectBuilder<'a>
impl<'a> Unpin for TocSelectBuilder<'a>
impl<'a> UnwindSafe for TocSelectBuilder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more