pub struct StateRef {
pub type_id: StateTypeId,
pub commitment: Hash,
pub output_index: u32,
}Expand description
State reference: identifies existing state to consume
Used in transitions to declare owned state inputs.
Fields§
§type_id: StateTypeIdType of state being referenced
commitment: HashCommitment hash that created this state
output_index: u32Index within the commitment’s outputs
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StateRef
impl<'de> Deserialize<'de> for StateRef
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
impl Eq for StateRef
impl StructuralPartialEq for StateRef
Auto Trait Implementations§
impl Freeze for StateRef
impl RefUnwindSafe for StateRef
impl Send for StateRef
impl Sync for StateRef
impl Unpin for StateRef
impl UnsafeUnpin for StateRef
impl UnwindSafe for StateRef
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