pub enum ContainerConstraint {
Requires {
require: TaggedContainerReference,
},
Uniqueness {
properties: Vec<String>,
},
}Expand description
Constraint on a container.
Variants§
Requires
In order to have values in this container, a node or edge must also have values in a different container.
Fields
§
require: TaggedContainerReferenceRequired container
Uniqueness
The given properties must contain only unique sets of values.
Trait Implementations§
Source§impl Clone for ContainerConstraint
impl Clone for ContainerConstraint
Source§fn clone(&self) -> ContainerConstraint
fn clone(&self) -> ContainerConstraint
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 ContainerConstraint
impl Debug for ContainerConstraint
Source§impl<'de> Deserialize<'de> for ContainerConstraint
impl<'de> Deserialize<'de> for ContainerConstraint
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
Auto Trait Implementations§
impl Freeze for ContainerConstraint
impl RefUnwindSafe for ContainerConstraint
impl Send for ContainerConstraint
impl Sync for ContainerConstraint
impl Unpin for ContainerConstraint
impl UnwindSafe for ContainerConstraint
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