Struct rgbstd::contract::OutputAssignment
source · pub struct OutputAssignment<State>where
State: ExposedState,{
pub opout: Opout,
pub seal: Outpoint,
pub state: State,
pub witness: SealWitness,
}
Fields§
§opout: Opout
§seal: Outpoint
§state: State
§witness: SealWitness
Implementations§
source§impl<State> OutputAssignment<State>where
State: ExposedState,
impl<State> OutputAssignment<State>where State: ExposedState,
pub fn with_witness<Seal>( seal: Seal, witness_txid: Txid, state: State, opid: OpId, ty: u16, no: u16 ) -> OutputAssignment<State>where Seal: TxoSeal,
pub fn with_genesis<Seal>( seal: Seal, state: State, opid: OpId, ty: u16, no: u16 ) -> OutputAssignment<State>where Seal: TxoSeal,
pub fn with_extension<Seal>( seal: Seal, state: State, opid: OpId, ty: u16, no: u16 ) -> OutputAssignment<State>where Seal: TxoSeal,
Trait Implementations§
source§impl<State> Clone for OutputAssignment<State>where
State: Clone + ExposedState,
impl<State> Clone for OutputAssignment<State>where State: Clone + ExposedState,
source§fn clone(&self) -> OutputAssignment<State>
fn clone(&self) -> OutputAssignment<State>
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<State> Debug for OutputAssignment<State>where
State: Debug + ExposedState,
impl<State> Debug for OutputAssignment<State>where State: Debug + ExposedState,
source§impl<'de, State> Deserialize<'de> for OutputAssignment<State>where
State: ExposedState + Deserialize<'de>,
impl<'de, State> Deserialize<'de> for OutputAssignment<State>where State: ExposedState + Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<OutputAssignment<State>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<OutputAssignment<State>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&OutputAssignment<RevealedValue>> for FungibleAllocation
impl From<&OutputAssignment<RevealedValue>> for FungibleAllocation
source§fn from(out: &FungibleOutput) -> Self
fn from(out: &FungibleOutput) -> Self
Converts to this type from the input type.
source§impl From<OutputAssignment<RevealedValue>> for FungibleAllocation
impl From<OutputAssignment<RevealedValue>> for FungibleAllocation
source§fn from(out: FungibleOutput) -> Self
fn from(out: FungibleOutput) -> Self
Converts to this type from the input type.
source§impl<State> Ord for OutputAssignment<State>where
State: ExposedState,
impl<State> Ord for OutputAssignment<State>where State: ExposedState,
source§fn cmp(&self, other: &OutputAssignment<State>) -> Ordering
fn cmp(&self, other: &OutputAssignment<State>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<State> PartialEq<OutputAssignment<State>> for OutputAssignment<State>where
State: ExposedState,
impl<State> PartialEq<OutputAssignment<State>> for OutputAssignment<State>where State: ExposedState,
source§fn eq(&self, other: &OutputAssignment<State>) -> bool
fn eq(&self, other: &OutputAssignment<State>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<State> PartialOrd<OutputAssignment<State>> for OutputAssignment<State>where
State: ExposedState,
impl<State> PartialOrd<OutputAssignment<State>> for OutputAssignment<State>where State: ExposedState,
source§fn partial_cmp(&self, other: &OutputAssignment<State>) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputAssignment<State>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<State> Serialize for OutputAssignment<State>where
State: ExposedState + Serialize,
impl<State> Serialize for OutputAssignment<State>where State: ExposedState + Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<State> StrictDecode for OutputAssignment<State>where
State: ExposedState,
impl<State> StrictDecode for OutputAssignment<State>where State: ExposedState,
fn strict_decode( reader: &mut impl TypedRead ) -> Result<OutputAssignment<State>, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl<State> StrictDumb for OutputAssignment<State>where
State: ExposedState,
impl<State> StrictDumb for OutputAssignment<State>where State: ExposedState,
fn strict_dumb() -> OutputAssignment<State>
source§impl<State> StrictEncode for OutputAssignment<State>where
State: ExposedState,
impl<State> StrictEncode for OutputAssignment<State>where State: ExposedState,
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl<State> StrictStruct for OutputAssignment<State>where
State: ExposedState,
impl<State> StrictStruct for OutputAssignment<State>where State: ExposedState,
const ALL_FIELDS: &'static [&'static str] = &["opout", "seal", "state", "witness"]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl<State> StrictType for OutputAssignment<State>where
State: ExposedState,
impl<State> StrictType for OutputAssignment<State>where State: ExposedState,
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl<State> Eq for OutputAssignment<State>where State: Eq + ExposedState,
impl<State> StrictProduct for OutputAssignment<State>where State: ExposedState,
impl<State> StructuralEq for OutputAssignment<State>where State: ExposedState,
Auto Trait Implementations§
impl<State> RefUnwindSafe for OutputAssignment<State>where State: RefUnwindSafe,
impl<State> Send for OutputAssignment<State>where State: Send,
impl<State> Sync for OutputAssignment<State>where State: Sync,
impl<State> Unpin for OutputAssignment<State>where State: Unpin,
impl<State> UnwindSafe for OutputAssignment<State>where State: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.