#[non_exhaustive]pub struct EntryComment<'a> {
pub created: String,
pub edited: Option<String>,
pub body: &'a str,
pub author: Option<&'static str>,
pub question: bool,
}Expand description
A comment on an entry.
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: StringRFC 3339.
edited: Option<String>RFC 3339, if edited after posting.
body: &'a strThe comment text (markdown).
agent for an agent’s; left out for a person’s.
question: boolWhether it’s a question to the user; only present when it is.
Trait Implementations§
Source§impl<'a> Debug for EntryComment<'a>
impl<'a> Debug for EntryComment<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntryComment<'a>
impl<'a> RefUnwindSafe for EntryComment<'a>
impl<'a> Send for EntryComment<'a>
impl<'a> Sync for EntryComment<'a>
impl<'a> Unpin for EntryComment<'a>
impl<'a> UnsafeUnpin for EntryComment<'a>
impl<'a> UnwindSafe for EntryComment<'a>
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