pub struct TldrSummaryBuilder<T: Clone + Debug + Default = String, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<T: Clone + Debug + Default, S: State> TldrSummaryBuilder<T, S>
impl<T: Clone + Debug + Default, S: State> TldrSummaryBuilder<T, S>
Sourcepub fn build(self) -> TldrSummary<T>where
S: IsComplete,
pub fn build(self) -> TldrSummary<T>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn who(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWho<S>>where
S::Who: IsUnset,
pub fn who(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWho<S>>where
S::Who: IsUnset,
Sourcepub fn maybe_who(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWho<S>>where
S::Who: IsUnset,
pub fn maybe_who(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWho<S>>where
S::Who: IsUnset,
Sourcepub fn what(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhat<S>>where
S::What: IsUnset,
pub fn what(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhat<S>>where
S::What: IsUnset,
Sourcepub fn maybe_what(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhat<S>>where
S::What: IsUnset,
pub fn maybe_what(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhat<S>>where
S::What: IsUnset,
Sourcepub fn when(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhen<S>>where
S::When: IsUnset,
pub fn when(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhen<S>>where
S::When: IsUnset,
Sourcepub fn maybe_when(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhen<S>>where
S::When: IsUnset,
pub fn maybe_when(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhen<S>>where
S::When: IsUnset,
Sourcepub fn where(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhere<S>>where
S::Where: IsUnset,
pub fn where(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhere<S>>where
S::Where: IsUnset,
Sourcepub fn maybe_where(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhere<S>>where
S::Where: IsUnset,
pub fn maybe_where(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhere<S>>where
S::Where: IsUnset,
Sourcepub fn why(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhy<S>>where
S::Why: IsUnset,
pub fn why(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhy<S>>where
S::Why: IsUnset,
Sourcepub fn maybe_why(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhy<S>>where
S::Why: IsUnset,
pub fn maybe_why(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhy<S>>where
S::Why: IsUnset,
Sourcepub fn whence(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhence<S>>where
S::Whence: IsUnset,
pub fn whence(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetWhence<S>>where
S::Whence: IsUnset,
Sourcepub fn maybe_whence(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhence<S>>where
S::Whence: IsUnset,
pub fn maybe_whence(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetWhence<S>>where
S::Whence: IsUnset,
Sourcepub fn how(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetHow<S>>where
S::How: IsUnset,
pub fn how(self, value: impl Into<T>) -> TldrSummaryBuilder<T, SetHow<S>>where
S::How: IsUnset,
Sourcepub fn maybe_how(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetHow<S>>where
S::How: IsUnset,
pub fn maybe_how(
self,
value: Option<impl Into<T>>,
) -> TldrSummaryBuilder<T, SetHow<S>>where
S::How: IsUnset,
Auto Trait Implementations§
impl<T, S> Freeze for TldrSummaryBuilder<T, S>where
T: Freeze,
impl<T, S> RefUnwindSafe for TldrSummaryBuilder<T, S>where
T: RefUnwindSafe,
impl<T, S> Send for TldrSummaryBuilder<T, S>where
T: Send,
impl<T, S> Sync for TldrSummaryBuilder<T, S>where
T: Sync,
impl<T, S> Unpin for TldrSummaryBuilder<T, S>where
T: Unpin,
impl<T, S> UnwindSafe for TldrSummaryBuilder<T, S>where
T: UnwindSafe,
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