pub struct LogEntry {
pub timestamp: String,
pub from_state: Option<String>,
pub to_state: Option<String>,
pub note: Option<String>,
pub raw: Option<String>,
}Expand description
One line of an issue’s :LOGBOOK: drawer.
Fields§
§timestamp: StringInactive org timestamp on the line, or empty for a raw CLOCK row.
from_state: Option<String>Previous TODO keyword on a state flip.
to_state: Option<String>New TODO keyword on a state flip.
note: Option<String>Folded note text, when the line is a note rather than a state flip.
raw: Option<String>Opaque logbook line (an org CLOCK: entry, say) preserved verbatim
across rewrites.
Implementations§
Source§impl LogEntry
impl LogEntry
Sourcepub fn is_bookkeeping(&self) -> bool
pub fn is_bookkeeping(&self) -> bool
Whether this line is the tracker’s own bookkeeping rather than something a worker said.
A reader looking for the last word on an issue wants what somebody wrote about the work. Releasing a claim files a note too, and it is the most recent one on almost every closed issue, so a reader that took the first note it found would nearly always be handed the same sentence about a claim rather than anything about the work.
Trait Implementations§
impl Eq for LogEntry
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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