pub struct ArticleAndParentComment {
pub article: Option<TextEntry>,
pub parent_comment: Option<TextEntry>,
}Expand description
A type of context specific to a comment left on a single-threaded comment message board, where comments are either a top level comment or the child of a top level comment.
This type is not used in any activity, and only used as part of another schema.
Fields§
§article: Option<TextEntry>The source content about which the comment was made (article text, article summary, video transcript, etc).
parent_comment: Option<TextEntry>Refers to text that is a direct parent of the source comment, such as in a one-deep threaded message board. This field will only be present for comments that are replies to other comments and will not be populated for direct comments on the article_text.
Trait Implementations§
Source§impl Clone for ArticleAndParentComment
impl Clone for ArticleAndParentComment
Source§fn clone(&self) -> ArticleAndParentComment
fn clone(&self) -> ArticleAndParentComment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArticleAndParentComment
impl Debug for ArticleAndParentComment
Source§impl Default for ArticleAndParentComment
impl Default for ArticleAndParentComment
Source§fn default() -> ArticleAndParentComment
fn default() -> ArticleAndParentComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArticleAndParentComment
impl<'de> Deserialize<'de> for ArticleAndParentComment
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
Source§impl Serialize for ArticleAndParentComment
impl Serialize for ArticleAndParentComment
impl Part for ArticleAndParentComment
Auto Trait Implementations§
impl Freeze for ArticleAndParentComment
impl RefUnwindSafe for ArticleAndParentComment
impl Send for ArticleAndParentComment
impl Sync for ArticleAndParentComment
impl Unpin for ArticleAndParentComment
impl UnwindSafe for ArticleAndParentComment
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