pub struct LabelledObject {
pub label: String,
pub type: Type,
pub value: Box<LabelledObjectValue>,
}Expand description
LabelledObject : A bundle of labelled Marlowe objects in define-before-use order.
Fields§
§label: StringAn arbitrary text identifier for an object in a Marlowe object bundle.
type: Type§value: Box<LabelledObjectValue>Implementations§
Source§impl LabelledObject
impl LabelledObject
Sourcepub fn new(
label: String,
type: Type,
value: LabelledObjectValue,
) -> LabelledObject
pub fn new( label: String, type: Type, value: LabelledObjectValue, ) -> LabelledObject
A bundle of labelled Marlowe objects in define-before-use order.
Trait Implementations§
Source§impl Clone for LabelledObject
impl Clone for LabelledObject
Source§fn clone(&self) -> LabelledObject
fn clone(&self) -> LabelledObject
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 LabelledObject
impl Debug for LabelledObject
Source§impl<'de> Deserialize<'de> for LabelledObject
impl<'de> Deserialize<'de> for LabelledObject
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 PartialEq for LabelledObject
impl PartialEq for LabelledObject
Source§impl Serialize for LabelledObject
impl Serialize for LabelledObject
impl StructuralPartialEq for LabelledObject
Auto Trait Implementations§
impl Freeze for LabelledObject
impl RefUnwindSafe for LabelledObject
impl Send for LabelledObject
impl Sync for LabelledObject
impl Unpin for LabelledObject
impl UnwindSafe for LabelledObject
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