#[non_exhaustive]pub enum ConstraintSelection {
All,
None,
Only(Vec<String>),
}Expand description
Which elements of one constraint family are active, by stable element
identity (the payload uid, else {table}:{row}; buses by their id).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Every element with a stated limit.
None
No element; the family is relaxed.
Only(Vec<String>)
Exactly the named elements.
Implementations§
Trait Implementations§
Source§impl Clone for ConstraintSelection
impl Clone for ConstraintSelection
Source§fn clone(&self) -> ConstraintSelection
fn clone(&self) -> ConstraintSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstraintSelection
impl Debug for ConstraintSelection
Source§impl Default for ConstraintSelection
impl Default for ConstraintSelection
Source§fn default() -> ConstraintSelection
fn default() -> ConstraintSelection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstraintSelection
impl<'de> Deserialize<'de> for ConstraintSelection
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
Source§impl JsonSchema for ConstraintSelection
impl JsonSchema for ConstraintSelection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConstraintSelection
impl PartialEq for ConstraintSelection
Source§fn eq(&self, other: &ConstraintSelection) -> bool
fn eq(&self, other: &ConstraintSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConstraintSelection
impl Serialize for ConstraintSelection
impl StructuralPartialEq for ConstraintSelection
Auto Trait Implementations§
impl Freeze for ConstraintSelection
impl RefUnwindSafe for ConstraintSelection
impl Send for ConstraintSelection
impl Sync for ConstraintSelection
impl Unpin for ConstraintSelection
impl UnsafeUnpin for ConstraintSelection
impl UnwindSafe for ConstraintSelection
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