pub struct ColorInfo {
pub color: Option<Color>,
pub pixel_fraction: Option<f32>,
pub score: Option<f32>,
}Expand description
Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
This type is not used in any activity, and only used as part of another schema.
Fields§
§color: Option<Color>RGB components of the color.
pixel_fraction: Option<f32>The fraction of pixels the color occupies in the image. Value in range [0, 1].
score: Option<f32>Image-specific score for this color. Value in range [0, 1].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColorInfo
impl<'de> Deserialize<'de> for ColorInfo
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 Part for ColorInfo
Auto Trait Implementations§
impl Freeze for ColorInfo
impl RefUnwindSafe for ColorInfo
impl Send for ColorInfo
impl Sync for ColorInfo
impl Unpin for ColorInfo
impl UnwindSafe for ColorInfo
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