Struct kitsu::model::Image
[−]
[src]
pub struct Image { pub large: Option<String>, pub medium: Option<String>, pub original: Option<String>, pub small: Option<String>, pub tiny: Option<String>, }
A list of links to the media's relevant images.
Fields
large: Option<String>
Link to a large size of the image.
medium: Option<String>
Link to a medium size of the image.
original: Option<String>
Link to an original size of the image.
small: Option<String>
Link to a small size of the image.
tiny: Option<String>
Link to a tiny size of the image.
Methods
impl Image
[src]
pub fn largest<'a>(&'a self) -> Option<&'a String>
[src]
Retrieves the URL to the largest image in descending order where available, if any.
This places priority on the original
field.
Trait Implementations
impl Clone for Image
[src]
fn clone(&self) -> Image
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more