pub struct FilterOption {
pub value: String,
pub label: String,
pub selected: bool,
}Expand description
One <option> of a filter select, or one checkbox of a filter checklist.
Fields§
§value: StringThe submitted value.
label: StringThe shown label.
selected: boolWhether the request selected it, or checked it.
Trait Implementations§
Source§impl Clone for FilterOption
impl Clone for FilterOption
Source§impl Debug for FilterOption
impl Debug for FilterOption
impl Eq for FilterOption
Source§impl PartialEq for FilterOption
impl PartialEq for FilterOption
impl StructuralPartialEq for FilterOption
Auto Trait Implementations§
impl Forget for FilterOption
impl Freeze for FilterOption
impl Move for FilterOption
impl RefUnwindSafe for FilterOption
impl Send for FilterOption
impl Sync for FilterOption
impl Unpin for FilterOption
impl UnsafeUnpin for FilterOption
impl UnwindSafe for FilterOption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.