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 for OutputAssignment<State>where
State: ExposedState,
impl<State> PartialEq for OutputAssignment<State>where
State: ExposedState,
Source§impl<State> PartialOrd for OutputAssignment<State>where
State: ExposedState,
impl<State> PartialOrd for OutputAssignment<State>where
State: ExposedState,
Source§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]
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,
Auto Trait Implementations§
impl<State> Freeze for OutputAssignment<State>where
State: Freeze,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.