Struct nekosbest::details::ImageDetails
source · pub struct ImageDetails {
pub artist_href: Url,
pub artist_name: String,
pub source_url: Url,
}
Expand description
In the case of [Category::Neko
], the API
also returns the source url, the name and a
link to the artist that made it.
Fields§
§artist_href: Url
§artist_name: String
§source_url: Url
Trait Implementations§
source§impl Clone for ImageDetails
impl Clone for ImageDetails
source§fn clone(&self) -> ImageDetails
fn clone(&self) -> ImageDetails
Returns a copy 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 ImageDetails
impl Debug for ImageDetails
source§impl<'de> Deserialize<'de> for ImageDetails
impl<'de> Deserialize<'de> for ImageDetails
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
source§impl From<ImageDetails> for Details
impl From<ImageDetails> for Details
source§fn from(v: ImageDetails) -> Self
fn from(v: ImageDetails) -> Self
Converts to this type from the input type.
source§impl Hash for ImageDetails
impl Hash for ImageDetails
source§impl Ord for ImageDetails
impl Ord for ImageDetails
source§fn cmp(&self, other: &ImageDetails) -> Ordering
fn cmp(&self, other: &ImageDetails) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ImageDetails> for ImageDetails
impl PartialEq<ImageDetails> for ImageDetails
source§fn eq(&self, other: &ImageDetails) -> bool
fn eq(&self, other: &ImageDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ImageDetails> for ImageDetails
impl PartialOrd<ImageDetails> for ImageDetails
source§fn partial_cmp(&self, other: &ImageDetails) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageDetails) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ImageDetails
impl StructuralEq for ImageDetails
impl StructuralPartialEq for ImageDetails
Auto Trait Implementations§
impl RefUnwindSafe for ImageDetails
impl Send for ImageDetails
impl Sync for ImageDetails
impl Unpin for ImageDetails
impl UnwindSafe for ImageDetails
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.