pub struct StateAssignment {
pub type_id: StateTypeId,
pub seal: SealRef,
pub data: Vec<u8>,
}Expand description
State assignment: specifies which seal receives which state
Used in transitions to declare new owned state outputs.
Fields§
§type_id: StateTypeIdType of state being assigned
seal: SealRefSeal that will own this state
data: Vec<u8>State data
Implementations§
Trait Implementations§
Source§impl Clone for StateAssignment
impl Clone for StateAssignment
Source§fn clone(&self) -> StateAssignment
fn clone(&self) -> StateAssignment
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 StateAssignment
impl Debug for StateAssignment
Source§impl<'de> Deserialize<'de> for StateAssignment
impl<'de> Deserialize<'de> for StateAssignment
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 Hash for StateAssignment
impl Hash for StateAssignment
Source§impl PartialEq for StateAssignment
impl PartialEq for StateAssignment
Source§impl Serialize for StateAssignment
impl Serialize for StateAssignment
impl Eq for StateAssignment
impl StructuralPartialEq for StateAssignment
Auto Trait Implementations§
impl Freeze for StateAssignment
impl RefUnwindSafe for StateAssignment
impl Send for StateAssignment
impl Sync for StateAssignment
impl Unpin for StateAssignment
impl UnsafeUnpin for StateAssignment
impl UnwindSafe for StateAssignment
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