pub struct ToscaValue {
pub type_name: Option<String>,
pub v: SimpleValue,
}
Expand description
A TOSCA value. If a complex value or typed scalar, type_name will be set.
Fields§
§type_name: Option<String>
§v: SimpleValue
Trait Implementations§
Source§impl Clone for ToscaValue
impl Clone for ToscaValue
Source§fn clone(&self) -> ToscaValue
fn clone(&self) -> ToscaValue
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 ToscaValue
impl Debug for ToscaValue
Source§impl From<BTreeMap<String, ToscaValue>> for ToscaValue
impl From<BTreeMap<String, ToscaValue>> for ToscaValue
Source§impl From<String> for ToscaValue
impl From<String> for ToscaValue
Source§impl From<Vec<ToscaValue>> for ToscaValue
impl From<Vec<ToscaValue>> for ToscaValue
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 ToscaValue
impl From<bool> for ToscaValue
Source§impl From<f64> for ToscaValue
impl From<f64> for ToscaValue
Source§impl From<i128> for ToscaValue
impl From<i128> for ToscaValue
Source§impl Hash for ToscaValue
impl Hash for ToscaValue
Source§impl PartialEq for ToscaValue
impl PartialEq for ToscaValue
Source§impl PartialOrd for ToscaValue
impl PartialOrd for ToscaValue
Source§impl PyClass for ToscaValue
impl PyClass for ToscaValue
Source§impl PyClassImpl for ToscaValue
impl PyClassImpl for ToscaValue
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[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<ToscaValue>
type ThreadChecker = SendablePyClass<ToscaValue>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
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 PyClassNewTextSignature<ToscaValue> for PyClassImplCollector<ToscaValue>
impl PyClassNewTextSignature<ToscaValue> for PyClassImplCollector<ToscaValue>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ToscaValue
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ToscaValue
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ToscaValue
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ToscaValue
Source§impl PyMethods<ToscaValue> for PyClassImplCollector<ToscaValue>
impl PyMethods<ToscaValue> for PyClassImplCollector<ToscaValue>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for ToscaValue
impl PyTypeInfo for ToscaValue
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 DerefToPyAny for ToscaValue
impl Eq for ToscaValue
impl StructuralPartialEq for ToscaValue
Auto Trait Implementations§
impl Freeze for ToscaValue
impl RefUnwindSafe for ToscaValue
impl Send for ToscaValue
impl Sync for ToscaValue
impl Unpin for ToscaValue
impl UnwindSafe for ToscaValue
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