pub struct Comment {
pub author: String,
pub text: String,
pub replies: Vec<(String, String)>,
pub threaded: bool,
pub resolved: bool,
pub visible: bool,
pub dates: Vec<String>,
pub note_box: Option<NoteBox>,
}Expand description
A note (classic comment) or a threaded comment.
Fields§
§text: String§replies: Vec<(String, String)>Replies of a threaded comment (author, text).
threaded: bool§resolved: bool§visible: bool§dates: Vec<String>Threaded comments: when the thread (first entry) and each reply were written, ISO 8601 as
read from the file (dT); empty when unknown, e.g. for comments made here.
note_box: Option<NoteBox>Where the note’s box sits and how big it is, as read from the file; None (a note made
here, or a file without the shape) writes the default box next to the cell.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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