Struct chromiumoxide::cdp::browser_protocol::dom::Rgba
source · pub struct Rgba {
pub r: i64,
pub g: i64,
pub b: i64,
pub a: Option<f64>,
}
Expand description
A structure holding an RGBA color. RGBA
Fields§
§r: i64
The red component, in the [0-255] range.
g: i64
The green component, in the [0-255] range.
b: i64
The blue component, in the [0-255] range.
a: Option<f64>
The alpha component, in the [0-1] range (default: 1).
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rgba
impl<'de> Deserialize<'de> for Rgba
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Rgba, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Rgba, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Rgba
impl PartialEq for Rgba
source§impl Serialize for Rgba
impl Serialize for Rgba
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Rgba
Auto Trait Implementations§
impl Freeze for Rgba
impl RefUnwindSafe for Rgba
impl Send for Rgba
impl Sync for Rgba
impl Unpin for Rgba
impl UnwindSafe for Rgba
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