pub struct CheckRule {
pub condition: DynamicBoolean,
pub message: String,
}Expand description
A single validation rule applied to an input component.
Fields§
§condition: DynamicBooleanThe condition to evaluate (must resolve to a boolean).
message: StringThe error message to display if the check fails.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckRule
impl<'de> Deserialize<'de> for CheckRule
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 StructuralPartialEq for CheckRule
Auto Trait Implementations§
impl Freeze for CheckRule
impl RefUnwindSafe for CheckRule
impl Send for CheckRule
impl Sync for CheckRule
impl Unpin for CheckRule
impl UnsafeUnpin for CheckRule
impl UnwindSafe for CheckRule
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