pub struct HackerNewsComment {
pub id: u32,
pub sub_comments: Vec<u32>,
pub created_at: OffsetDateTime,
pub parent_story: u32,
pub text: String,
pub by: String,
}
Expand description
Represents a Hacker News story and all associated data to it including author, text, and child comments.
Fields§
§id: u32
The item’s unique id.
sub_comments: Vec<u32>
A list of associated child comment IDs.
created_at: OffsetDateTime
Creation date of the comment.
parent_story: u32
The ID of the parent story.
text: String
Content of the comment.
by: String
Username of the comment poster.
Trait Implementations§
Source§impl Debug for HackerNewsComment
impl Debug for HackerNewsComment
Source§impl TryFrom<HackerNewsItem> for HackerNewsComment
impl TryFrom<HackerNewsItem> for HackerNewsComment
Source§type Error = HackerNewsClientError
type Error = HackerNewsClientError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for HackerNewsComment
impl RefUnwindSafe for HackerNewsComment
impl Send for HackerNewsComment
impl Sync for HackerNewsComment
impl Unpin for HackerNewsComment
impl UnwindSafe for HackerNewsComment
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