pub struct Artwork {
pub width: Option<u32>,
pub height: Option<u32>,
pub url: String,
pub text_color_1: Option<u32>,
pub text_color_2: Option<u32>,
pub text_color_3: Option<u32>,
pub text_color_4: Option<u32>,
}Expand description
Artwork information
Fields§
§width: Option<u32>Original image width in pixels
height: Option<u32>Original image height in pixels
url: StringTemplate image url
DO NOT USE FOR REQUESTS:
for getting the image use the [Artwork::get_image] method
text_color_1: Option<u32>Text color 1 in rgb hex
text_color_2: Option<u32>Text color 2 in rgb hex
text_color_3: Option<u32>Text color 3 in rgb hex
text_color_4: Option<u32>Text color 4 in rgb hex
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artwork
impl<'de> Deserialize<'de> for Artwork
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 Artwork
impl StructuralPartialEq for Artwork
Auto Trait Implementations§
impl Freeze for Artwork
impl RefUnwindSafe for Artwork
impl Send for Artwork
impl Sync for Artwork
impl Unpin for Artwork
impl UnwindSafe for Artwork
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