pub struct BooruPost {
pub id: u32,
pub created_at: Option<String>,
pub score: i64,
pub width: u32,
pub height: u32,
pub md5: Option<String>,
pub file_url: Option<String>,
pub tags: String,
pub image: Option<String>,
pub source: Option<String>,
pub rating: Rating,
}Fields§
§id: u32§created_at: Option<String>§score: i64§width: u32§height: u32§md5: Option<String>§file_url: Option<String>§image: Option<String>§source: Option<String>§rating: RatingTrait Implementations§
Source§impl From<DanbooruPost> for BooruPost
impl From<DanbooruPost> for BooruPost
Source§fn from(value: DanbooruPost) -> Self
fn from(value: DanbooruPost) -> Self
Converts to this type from the input type.
Source§impl From<GelbooruPost> for BooruPost
impl From<GelbooruPost> for BooruPost
Source§fn from(post: GelbooruPost) -> Self
fn from(post: GelbooruPost) -> Self
Converts to this type from the input type.
Source§impl From<SafebooruPost> for BooruPost
impl From<SafebooruPost> for BooruPost
Source§fn from(post: SafebooruPost) -> Self
fn from(post: SafebooruPost) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BooruPost
impl RefUnwindSafe for BooruPost
impl Send for BooruPost
impl Sync for BooruPost
impl Unpin for BooruPost
impl UnwindSafe for BooruPost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more