pub struct PaletteResponse {
pub success: bool,
pub total_results: u32,
pub total_pages: u32,
pub palettes: Option<Vec<Palette>>,
}Expand description
Represents the response structure when fetching a list of palettes.
Fields§
§success: boolIndicates if the API request was successful.
total_results: u32The total number of results found for the query.
total_pages: u32The total number of pages available for the query.
palettes: Option<Vec<Palette>>An optional vector of Palette objects. It will be None if no palettes were found.
Trait Implementations§
Source§impl Debug for PaletteResponse
impl Debug for PaletteResponse
Source§impl<'de> Deserialize<'de> for PaletteResponse
impl<'de> Deserialize<'de> for PaletteResponse
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
Auto Trait Implementations§
impl Freeze for PaletteResponse
impl RefUnwindSafe for PaletteResponse
impl Send for PaletteResponse
impl Sync for PaletteResponse
impl Unpin for PaletteResponse
impl UnwindSafe for PaletteResponse
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