#[non_exhaustive]pub struct Comment {
pub created: DateTime<Local>,
pub edited: Option<DateTime<Local>>,
pub body: String,
pub author: Author,
pub question: bool,
pub answer: bool,
pub unknown: Vec<String>,
}Expand description
A timestamped comment on a task, like on a GitHub/GitLab issue.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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).
answer: boolThe answer to the question before it, whoever wrote it: a verdict on the decision it asked about, which an agent may give on the user’s word.
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.