Struct spotifyrs::SpotifyImage
source · pub struct SpotifyImage {
pub url: String,
pub height: i32,
pub width: i32,
}
Expand description
Struct to represent Spotify images (album art, etc.)
Fields§
§url: String
§height: i32
§width: i32
Implementations§
source§impl SpotifyImage
impl SpotifyImage
sourcepub fn new(image: &JsonValue) -> SpotifyImage
pub fn new(image: &JsonValue) -> SpotifyImage
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SpotifyImage
impl Send for SpotifyImage
impl Sync for SpotifyImage
impl Unpin for SpotifyImage
impl UnwindSafe for SpotifyImage
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