pub struct Post {Show 17 fields
pub file_url: String,
pub image: String,
pub tags: Vec<String>,
pub width: u64,
pub height: u64,
pub sample: bool,
pub sample_url: String,
pub sample_width: u64,
pub sample_height: u64,
pub source: String,
pub id: u64,
pub score: u64,
pub parent_id: u64,
pub comment_count: u64,
pub preview_url: String,
pub owner: String,
pub rating: Option<Rating>,
}Expand description
Post struct. Holds all information about a Post
Fields§
§file_url: StringUrl of Post’s File
image: StringName of Post’s File
Post’s Tags
width: u64Width of Post’s File
height: u64Height of Post’s File
sample: boolTells if the Post has a Sample
sample_url: StringUrl of Post’s Sample
sample_width: u64Height of Post’s Sample File
sample_height: u64Height of Post’s Sample File
source: StringSource of Post e.g. Twitter User etc.
id: u64ID of Post
score: u64Score of Post
parent_id: u64ID of Post’s Parent Post
comment_count: u64Amount of Comments on the Post
preview_url: StringUrl of Post’s Preview Image
owner: StringName of Post’s Owner/Poster
rating: Option<Rating>Rating of Post e.g. Safe, Explicit or Questionable
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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