pub struct DominantColorsAnnotation {
pub colors: Option<Vec<ColorInfo>>,
}Expand description
Set of dominant colors and their corresponding scores.
This type is not used in any activity, and only used as part of another schema.
Fields§
§colors: Option<Vec<ColorInfo>>RGB color values with their score and pixel fraction.
Trait Implementations§
Source§impl Clone for DominantColorsAnnotation
impl Clone for DominantColorsAnnotation
Source§fn clone(&self) -> DominantColorsAnnotation
fn clone(&self) -> DominantColorsAnnotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DominantColorsAnnotation
impl Debug for DominantColorsAnnotation
Source§impl Default for DominantColorsAnnotation
impl Default for DominantColorsAnnotation
Source§fn default() -> DominantColorsAnnotation
fn default() -> DominantColorsAnnotation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DominantColorsAnnotation
impl<'de> Deserialize<'de> for DominantColorsAnnotation
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
Source§impl Serialize for DominantColorsAnnotation
impl Serialize for DominantColorsAnnotation
impl Part for DominantColorsAnnotation
Auto Trait Implementations§
impl Freeze for DominantColorsAnnotation
impl RefUnwindSafe for DominantColorsAnnotation
impl Send for DominantColorsAnnotation
impl Sync for DominantColorsAnnotation
impl Unpin for DominantColorsAnnotation
impl UnwindSafe for DominantColorsAnnotation
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