pub struct TransactionUnspentOutput {
pub input: TransactionInput,
pub output: TransactionOutput,
}Expand description
A UTXO structure. This is not used on-chain anywhere but is useful for the builders as well as interfacing with CIP30 (same name as there)
Fields§
§input: TransactionInput§output: TransactionOutputImplementations§
Source§impl TransactionUnspentOutput
impl TransactionUnspentOutput
pub fn new(input: TransactionInput, output: TransactionOutput) -> Self
Trait Implementations§
Source§impl Clone for TransactionUnspentOutput
impl Clone for TransactionUnspentOutput
Source§fn clone(&self) -> TransactionUnspentOutput
fn clone(&self) -> TransactionUnspentOutput
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 TransactionUnspentOutput
impl Debug for TransactionUnspentOutput
Source§impl Deserialize for TransactionUnspentOutput
impl Deserialize for TransactionUnspentOutput
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
from-bytes using the exact CBOR format specified in the CDDL binary spec.
For hashes/addresses/etc this will include the CBOR bytes type/len/etc.
Source§impl From<TransactionUnspentOutput> for SingleInputBuilder
impl From<TransactionUnspentOutput> for SingleInputBuilder
Source§fn from(utxo: TransactionUnspentOutput) -> Self
fn from(utxo: TransactionUnspentOutput) -> Self
Converts to this type from the input type.
Source§impl Serialize for TransactionUnspentOutput
impl Serialize for TransactionUnspentOutput
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
Auto Trait Implementations§
impl Freeze for TransactionUnspentOutput
impl RefUnwindSafe for TransactionUnspentOutput
impl Send for TransactionUnspentOutput
impl Sync for TransactionUnspentOutput
impl Unpin for TransactionUnspentOutput
impl UnsafeUnpin for TransactionUnspentOutput
impl UnwindSafe for TransactionUnspentOutput
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<T> FromBytes for Twhere
T: Deserialize,
impl<T> FromBytes for Twhere
T: Deserialize,
fn from_bytes(data: Vec<u8>) -> Result<T, DeserializeError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more