pub struct PHColor {
pub red: f64,
pub green: f64,
pub blue: f64,
pub alpha: f64,
}Expand description
Encodes an RGBA color used by PhotosUI payloads.
Fields§
§red: f64Red channel, normalized to 0.0..=1.0.
green: f64Green channel, normalized to 0.0..=1.0.
blue: f64Blue channel, normalized to 0.0..=1.0.
alpha: f64Alpha channel, normalized to 0.0..=1.0.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PHColor
impl<'de> Deserialize<'de> for PHColor
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 Copy for PHColor
impl StructuralPartialEq for PHColor
Auto Trait Implementations§
impl Freeze for PHColor
impl RefUnwindSafe for PHColor
impl Send for PHColor
impl Sync for PHColor
impl Unpin for PHColor
impl UnsafeUnpin for PHColor
impl UnwindSafe for PHColor
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