pub struct ParamConditionEntry {
pub param: String,
pub equals: String,
}Expand description
A single condition entry: “when param has the value equals”.
Used both standalone (in ParamCondition::Single) and as entries
in the ParamCondition::Any array.
Fields§
§param: StringThe name of the parameter to check against.
Example: "operation" — check the value of the “operation” parameter.
equals: StringThe value that triggers visibility/requirement.
Example: "resize" — only show this param when operation is “resize”.
Trait Implementations§
Source§impl Clone for ParamConditionEntry
impl Clone for ParamConditionEntry
Source§fn clone(&self) -> ParamConditionEntry
fn clone(&self) -> ParamConditionEntry
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 moreSource§impl Debug for ParamConditionEntry
impl Debug for ParamConditionEntry
Source§impl PartialEq for ParamConditionEntry
impl PartialEq for ParamConditionEntry
Source§impl Serialize for ParamConditionEntry
impl Serialize for ParamConditionEntry
impl StructuralPartialEq for ParamConditionEntry
Auto Trait Implementations§
impl Freeze for ParamConditionEntry
impl RefUnwindSafe for ParamConditionEntry
impl Send for ParamConditionEntry
impl Sync for ParamConditionEntry
impl Unpin for ParamConditionEntry
impl UnsafeUnpin for ParamConditionEntry
impl UnwindSafe for ParamConditionEntry
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