pub struct ByronTxOut(/* private fields */);Implementations§
Source§impl ByronTxOut
impl ByronTxOut
Sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes.
- This type does NOT support fine-tuned encoding options so this may or may not be
- canonical CBOR and may or may not preserve round-trip encodings.
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<ByronTxOut, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<ByronTxOut, JsError>
- Create this type from CBOR bytes
Sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type does NOT support fine-tuned encoding options so this may or may not be
- canonical CBOR and may or may not preserve round-trip encodings.
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<ByronTxOut, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<ByronTxOut, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl ByronTxOut
impl ByronTxOut
pub fn address(&self) -> ByronAddress
pub fn amount(&self) -> u64
pub fn new(address: &ByronAddress, amount: u64) -> Self
Trait Implementations§
Source§impl AsRef<ByronTxOut> for ByronTxOut
impl AsRef<ByronTxOut> for ByronTxOut
Source§fn as_ref(&self) -> &ByronTxOut
fn as_ref(&self) -> &ByronTxOut
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ByronTxOut
impl Clone for ByronTxOut
Source§fn clone(&self) -> ByronTxOut
fn clone(&self) -> ByronTxOut
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 ByronTxOut
impl Debug for ByronTxOut
Source§impl From<ByronTxOut> for ByronTxOut
impl From<ByronTxOut> for ByronTxOut
Source§fn from(native: ByronTxOut) -> Self
fn from(native: ByronTxOut) -> Self
Converts to this type from the input type.
Source§impl From<ByronTxOut> for JsValue
impl From<ByronTxOut> for JsValue
Source§fn from(value: ByronTxOut) -> Self
fn from(value: ByronTxOut) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ByronTxOut
impl FromWasmAbi for ByronTxOut
Source§impl Into<ByronTxOut> for ByronTxOut
impl Into<ByronTxOut> for ByronTxOut
Source§fn into(self) -> ByronTxOut
fn into(self) -> ByronTxOut
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for ByronTxOut
impl IntoWasmAbi for ByronTxOut
Source§impl LongRefFromWasmAbi for ByronTxOut
impl LongRefFromWasmAbi for ByronTxOut
Source§impl OptionFromWasmAbi for ByronTxOut
impl OptionFromWasmAbi for ByronTxOut
Source§impl OptionIntoWasmAbi for ByronTxOut
impl OptionIntoWasmAbi for ByronTxOut
Source§impl RefFromWasmAbi for ByronTxOut
impl RefFromWasmAbi for ByronTxOut
Source§type Anchor = RcRef<ByronTxOut>
type Anchor = RcRef<ByronTxOut>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ByronTxOut
impl RefMutFromWasmAbi for ByronTxOut
Source§impl TryFromJsValue for ByronTxOut
impl TryFromJsValue for ByronTxOut
Source§impl VectorFromWasmAbi for ByronTxOut
impl VectorFromWasmAbi for ByronTxOut
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ByronTxOut]>
Source§impl VectorIntoJsValue for ByronTxOut
impl VectorIntoJsValue for ByronTxOut
fn vector_into_jsvalue(vector: Box<[ByronTxOut]>) -> JsValue
Source§impl VectorIntoWasmAbi for ByronTxOut
impl VectorIntoWasmAbi for ByronTxOut
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ByronTxOut]>) -> Self::Abi
Source§impl WasmDescribeVector for ByronTxOut
impl WasmDescribeVector for ByronTxOut
impl SupportsConstructor for ByronTxOut
impl SupportsInstanceProperty for ByronTxOut
impl SupportsStaticProperty for ByronTxOut
Auto Trait Implementations§
impl Freeze for ByronTxOut
impl RefUnwindSafe for ByronTxOut
impl Send for ByronTxOut
impl Sync for ByronTxOut
impl Unpin for ByronTxOut
impl UnwindSafe for ByronTxOut
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> 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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.