pub struct Comment {
pub created: DateTime<Local>,
pub edited: Option<DateTime<Local>>,
pub body: String,
pub author: Author,
pub question: bool,
pub unknown: Vec<String>,
}Expand description
A timestamped comment on a task, like on a GitHub/GitLab issue.
Fields§
§created: DateTime<Local>When the comment was written.
edited: Option<DateTime<Local>>Set when the body was changed after posting.
body: StringThe comment text (markdown).
Who wrote it.
question: boolA question to the user: the task waits for a person’s answer (see Task::asked).
unknown: Vec<String>Words of the header’s parentheses this version doesn’t know, written back as they were.
Implementations§
Trait Implementations§
impl Eq for Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnsafeUnpin for Comment
impl UnwindSafe for Comment
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.