#[non_exhaustive]pub struct AllowedValues {
pub values: Vec<ParamValue>,
/* private fields */
}Expand description
The allowed set of values for the parameter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.values: Vec<ParamValue>Required. The list of allowed values for the parameter.
Implementations§
Source§impl AllowedValues
impl AllowedValues
pub fn new() -> Self
Sourcepub fn set_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AllowedValues
impl Clone for AllowedValues
Source§fn clone(&self) -> AllowedValues
fn clone(&self) -> AllowedValues
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 AllowedValues
impl Debug for AllowedValues
Source§impl Default for AllowedValues
impl Default for AllowedValues
Source§fn default() -> AllowedValues
fn default() -> AllowedValues
Returns the “default value” for a type. Read more
Source§impl Message for AllowedValues
impl Message for AllowedValues
Source§impl PartialEq for AllowedValues
impl PartialEq for AllowedValues
impl StructuralPartialEq for AllowedValues
Auto Trait Implementations§
impl Freeze for AllowedValues
impl RefUnwindSafe for AllowedValues
impl Send for AllowedValues
impl Sync for AllowedValues
impl Unpin for AllowedValues
impl UnwindSafe for AllowedValues
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