pub struct RgbColorValidator;Expand description
A validator for RGB color strings.
An RGB color string must be in the format #RRGGBB, where RR, GG, and BB are
two-digit hexadecimal numbers representing the red, green, and blue components of the color.
§Examples
Trait Implementations§
Source§impl Validate for RgbColorValidator
impl Validate for RgbColorValidator
Source§fn validate(&self, value: &Value) -> IcDbmsResult<()>
fn validate(&self, value: &Value) -> IcDbmsResult<()>
Validates the given
crate::prelude::Value. Read moreAuto Trait Implementations§
impl Freeze for RgbColorValidator
impl RefUnwindSafe for RgbColorValidator
impl Send for RgbColorValidator
impl Sync for RgbColorValidator
impl Unpin for RgbColorValidator
impl UnwindSafe for RgbColorValidator
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