pub struct Post {Show 21 fields
pub source: String,
pub directory: String,
pub height: u64,
pub id: u64,
pub image: String,
pub change: u64,
pub owner: String,
pub parent_id: Option<u64>,
pub rating: String,
pub sample: u64,
pub preview_height: u64,
pub preview_width: u64,
pub sample_height: u64,
pub sample_width: u64,
pub score: u64,
pub tags: String,
pub title: String,
pub width: u64,
pub file_url: String,
pub created_at: String,
pub post_locked: u64,
}Expand description
Post on Gelbooru
Fields§
§source: String§directory: String§height: u64§id: u64§image: String§change: u64§owner: String§parent_id: Option<u64>§rating: String§sample: u64§preview_height: u64§preview_width: u64§sample_height: u64§sample_width: u64§score: u64§title: String§width: u64§file_url: String§created_at: String§post_locked: u64Implementations§
Source§impl Post
impl Post
pub fn id(&self) -> u64
pub fn title<'a>(&'a self) -> &'a str
pub fn score(&self) -> u64
pub fn created_at(&self) -> DateTime<FixedOffset>
pub fn rating<'a>(&'a self) -> Rating
pub fn owner<'a>(&'a self) -> &'a str
pub fn dimensions(&self) -> (u64, u64)
pub fn image_url<'a>(&'a self) -> &'a str
pub fn source<'a>(&'a self) -> &'a str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
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 Post
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