pub enum RequirementCondition {
Always,
IfFieldEquals {
field: String,
value: FieldValue,
},
IfFieldNotEmpty {
field: String,
},
IfGroupHasValue {
group: String,
},
}Expand description
Requirement conditions
Variants§
Always
Always required
IfFieldEquals
Required if another field has a specific value
IfFieldNotEmpty
Required if another field is not empty
IfGroupHasValue
Required if at least one field in group is filled
Trait Implementations§
Source§impl Clone for RequirementCondition
impl Clone for RequirementCondition
Source§fn clone(&self) -> RequirementCondition
fn clone(&self) -> RequirementCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RequirementCondition
impl RefUnwindSafe for RequirementCondition
impl Send for RequirementCondition
impl Sync for RequirementCondition
impl Unpin for RequirementCondition
impl UnwindSafe for RequirementCondition
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