pub enum ArtworkSize {
Thumb,
Small,
Medium,
Large,
Original,
Unknown,
}Expand description
The widths the server serves. A fixed set, not a free number: a free width would let one client fill the cache with every width there is. Clients pick the smallest that covers what they draw.
Variants§
Thumb
160 px wide.
Small
320 px wide.
Medium
640 px wide.
Large
1280 px wide.
Original
As the catalog has it.
Unknown
A size this build does not know.
Implementations§
Trait Implementations§
Source§impl Clone for ArtworkSize
impl Clone for ArtworkSize
impl Copy for ArtworkSize
Source§impl Debug for ArtworkSize
impl Debug for ArtworkSize
Source§impl<'de> Deserialize<'de> for ArtworkSize
impl<'de> Deserialize<'de> for ArtworkSize
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
impl Eq for ArtworkSize
Source§impl Hash for ArtworkSize
impl Hash for ArtworkSize
Source§impl PartialEq for ArtworkSize
impl PartialEq for ArtworkSize
Source§impl Serialize for ArtworkSize
impl Serialize for ArtworkSize
impl StructuralPartialEq for ArtworkSize
Auto Trait Implementations§
impl Freeze for ArtworkSize
impl RefUnwindSafe for ArtworkSize
impl Send for ArtworkSize
impl Sync for ArtworkSize
impl Unpin for ArtworkSize
impl UnsafeUnpin for ArtworkSize
impl UnwindSafe for ArtworkSize
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