pub struct ScrapedPost {
pub id: Box<str>,
pub title: Box<str>,
pub username: Box<str>,
pub views: u64,
pub nsfw: bool,
pub image_count: u64,
pub images: Box<[File]>,
}Expand description
A Post
Fields§
§id: Box<str>The id of the post
title: Box<str>The title of the post
username: Box<str>The author of the post
views: u64The number of views
nsfw: boolWhether this is nsfw
image_count: u64The number of images
images: Box<[File]>Post images
Trait Implementations§
Source§impl Clone for ScrapedPost
impl Clone for ScrapedPost
Source§fn clone(&self) -> ScrapedPost
fn clone(&self) -> ScrapedPost
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 ScrapedPost
impl Debug for ScrapedPost
Source§impl<'de> Deserialize<'de> for ScrapedPost
impl<'de> Deserialize<'de> for ScrapedPost
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
Auto Trait Implementations§
impl Freeze for ScrapedPost
impl RefUnwindSafe for ScrapedPost
impl Send for ScrapedPost
impl Sync for ScrapedPost
impl Unpin for ScrapedPost
impl UnwindSafe for ScrapedPost
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