pub enum SimpleValue {
integer {
v: i128,
},
string {
v: String,
},
boolean {
v: bool,
},
float {
v: f64,
},
list {
v: Vec<ToscaValue>,
},
range {
v: (i128, i128),
},
map {
v: BTreeMap<String, ToscaValue>,
},
}
Expand description
Simple TOSCA value
Variants§
integer
string
boolean
float
list
Fields
§
v: Vec<ToscaValue>
range
map
Fields
§
v: BTreeMap<String, ToscaValue>
Trait Implementations§
Source§impl Clone for SimpleValue
impl Clone for SimpleValue
Source§fn clone(&self) -> SimpleValue
fn clone(&self) -> SimpleValue
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 SimpleValue
impl Debug for SimpleValue
Source§impl From<BTreeMap<String, ToscaValue>> for SimpleValue
impl From<BTreeMap<String, ToscaValue>> for SimpleValue
Source§impl From<String> for SimpleValue
impl From<String> for SimpleValue
Source§impl From<Vec<ToscaValue>> for SimpleValue
impl From<Vec<ToscaValue>> for SimpleValue
Source§fn from(item: Vec<ToscaValue>) -> Self
fn from(item: Vec<ToscaValue>) -> Self
Converts to this type from the input type.
Source§impl From<bool> for SimpleValue
impl From<bool> for SimpleValue
Source§impl From<f64> for SimpleValue
impl From<f64> for SimpleValue
Source§impl From<i128> for SimpleValue
impl From<i128> for SimpleValue
Source§impl Hash for SimpleValue
impl Hash for SimpleValue
Source§impl PartialEq for SimpleValue
impl PartialEq for SimpleValue
Source§impl PartialOrd for SimpleValue
impl PartialOrd for SimpleValue
Source§impl PyClass for SimpleValue
impl PyClass for SimpleValue
Source§impl PyClassImpl for SimpleValue
impl PyClassImpl for SimpleValue
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<SimpleValue>
type ThreadChecker = SendablePyClass<SimpleValue>
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 SimpleValue
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a SimpleValue
Source§impl PyTypeInfo for SimpleValue
impl PyTypeInfo for SimpleValue
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 SimpleValue
impl StructuralPartialEq for SimpleValue
Auto Trait Implementations§
impl Freeze for SimpleValue
impl RefUnwindSafe for SimpleValue
impl Send for SimpleValue
impl Sync for SimpleValue
impl Unpin for SimpleValue
impl UnwindSafe for SimpleValue
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