pub enum CriteriaTerm {
NodeName {
n: String,
},
NodeType {
n: String,
},
CapabilityName {
n: String,
},
CapabilityTypeGroup {
names: Vec<String>,
},
PropFilter {
n: String,
capability: Option<String>,
constraints: Vec<Constraint>,
},
NodeMatch {
query: Vec<(QueryType, String)>,
},
}
Expand description
Represents the match criteria for a requirement.
Corresponds to “node”, “capability”, and “node_filter” fields on a TOSCA requirement and “valid_target_types” on relationship types.
Variants§
Trait Implementations§
Source§impl Clone for CriteriaTerm
impl Clone for CriteriaTerm
Source§fn clone(&self) -> CriteriaTerm
fn clone(&self) -> CriteriaTerm
Returns a copy 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 CriteriaTerm
impl Debug for CriteriaTerm
Source§impl Hash for CriteriaTerm
impl Hash for CriteriaTerm
Source§impl Ord for CriteriaTerm
impl Ord for CriteriaTerm
Source§fn cmp(&self, other: &CriteriaTerm) -> Ordering
fn cmp(&self, other: &CriteriaTerm) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CriteriaTerm
impl PartialEq for CriteriaTerm
Source§impl PartialOrd for CriteriaTerm
impl PartialOrd for CriteriaTerm
Source§impl PyClass for CriteriaTerm
impl PyClass for CriteriaTerm
Source§impl PyClassImpl for CriteriaTerm
impl PyClassImpl for CriteriaTerm
Source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type ThreadChecker = SendablePyClass<CriteriaTerm>
type ThreadChecker = SendablePyClass<CriteriaTerm>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a CriteriaTerm
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a CriteriaTerm
Source§impl PyTypeInfo for CriteriaTerm
impl PyTypeInfo for CriteriaTerm
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl Eq for CriteriaTerm
impl StructuralPartialEq for CriteriaTerm
Auto Trait Implementations§
impl Freeze for CriteriaTerm
impl RefUnwindSafe for CriteriaTerm
impl Send for CriteriaTerm
impl Sync for CriteriaTerm
impl Unpin for CriteriaTerm
impl UnwindSafe for CriteriaTerm
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
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§impl<T> FromPyObject<'_> for T
impl<T> FromPyObject<'_> for T
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more