pub struct TimelineEntry { /* private fields */ }Expand description
One thing that happened.
Implementations§
Source§impl TimelineEntry
impl TimelineEntry
pub fn new( id: impl Into<SharedString>, description: impl Into<SharedString>, ) -> Self
Sourcepub fn time(self, time: impl Into<EntryTime>) -> Self
pub fn time(self, time: impl Into<EntryTime>) -> Self
The time, already in the words the host chose.
pub fn time_unknown(self) -> Self
pub fn actor(self, actor: impl Into<SharedString>) -> Self
pub fn tone(self, tone: Tone) -> Self
Sourcepub fn detail(self, detail: impl IntoElement) -> Self
pub fn detail(self, detail: impl IntoElement) -> Self
Anything the entry carries beyond one line, such as a diff or a reason.
pub fn id(&self) -> &SharedString
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TimelineEntry
impl !Send for TimelineEntry
impl !Sync for TimelineEntry
impl !UnwindSafe for TimelineEntry
impl Freeze for TimelineEntry
impl Unpin for TimelineEntry
impl UnsafeUnpin for TimelineEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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