Trait schema_org_types::CommentTrait
source · pub trait CommentTrait {
// Required methods
fn get_downvote_count(&self) -> &[DownvoteCountProperty];
fn take_downvote_count(&mut self) -> Vec<DownvoteCountProperty>;
fn get_parent_item(&self) -> &[ParentItemProperty];
fn take_parent_item(&mut self) -> Vec<ParentItemProperty>;
fn get_shared_content(&self) -> &[SharedContentProperty];
fn take_shared_content(&mut self) -> Vec<SharedContentProperty>;
fn get_upvote_count(&self) -> &[UpvoteCountProperty];
fn take_upvote_count(&mut self) -> Vec<UpvoteCountProperty>;
}
Expand description
This trait is for properties from https://schema.org/Comment.
Required Methods§
sourcefn get_downvote_count(&self) -> &[DownvoteCountProperty]
fn get_downvote_count(&self) -> &[DownvoteCountProperty]
Get https://schema.org/downvoteCount from Self
as borrowed slice.
sourcefn take_downvote_count(&mut self) -> Vec<DownvoteCountProperty>
fn take_downvote_count(&mut self) -> Vec<DownvoteCountProperty>
Take https://schema.org/downvoteCount from Self
as owned vector.
sourcefn get_parent_item(&self) -> &[ParentItemProperty]
fn get_parent_item(&self) -> &[ParentItemProperty]
Get https://schema.org/parentItem from Self
as borrowed slice.
sourcefn take_parent_item(&mut self) -> Vec<ParentItemProperty>
fn take_parent_item(&mut self) -> Vec<ParentItemProperty>
Take https://schema.org/parentItem from Self
as owned vector.
Get https://schema.org/sharedContent from Self
as borrowed slice.
Take https://schema.org/sharedContent from Self
as owned vector.
sourcefn get_upvote_count(&self) -> &[UpvoteCountProperty]
fn get_upvote_count(&self) -> &[UpvoteCountProperty]
Get https://schema.org/upvoteCount from Self
as borrowed slice.
sourcefn take_upvote_count(&mut self) -> Vec<UpvoteCountProperty>
fn take_upvote_count(&mut self) -> Vec<UpvoteCountProperty>
Take https://schema.org/upvoteCount from Self
as owned vector.