pub struct Comment {
pub id: usize,
pub author: String,
pub date: String,
pub children: Vec<CommentChild>,
pub parent_comment_id: Option<usize>,
}
Fields§
§id: usize
§date: String
§children: Vec<CommentChild>
§parent_comment_id: Option<usize>
Implementations§
Source§impl Comment
impl Comment
pub fn new(id: usize) -> Comment
pub fn date(self, date: impl Into<String>) -> Comment
pub fn add_paragraph(self, p: Paragraph) -> Self
pub fn add_table(self, t: Table) -> Self
pub fn parent_comment_id(self, parent_comment_id: usize) -> Comment
pub fn id(&self) -> usize
Trait Implementations§
Source§impl ElementReader for Comment
impl ElementReader for Comment
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
impl BuildXML 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 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