pub struct RedeemerVal(/* private fields */);Implementations§
Source§impl RedeemerVal
impl RedeemerVal
Sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes using canonical CBOR encodings
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<RedeemerVal, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<RedeemerVal, 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 type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_hex(&self) -> String
pub fn to_canonical_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<RedeemerVal, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<RedeemerVal, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl RedeemerVal
impl RedeemerVal
Source§impl RedeemerVal
impl RedeemerVal
pub fn data(&self) -> PlutusData
pub fn ex_units(&self) -> ExUnits
pub fn new(data: &PlutusData, ex_units: &ExUnits) -> Self
Trait Implementations§
Source§impl AsRef<RedeemerVal> for RedeemerVal
impl AsRef<RedeemerVal> for RedeemerVal
Source§fn as_ref(&self) -> &RedeemerVal
fn as_ref(&self) -> &RedeemerVal
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RedeemerVal
impl Clone for RedeemerVal
Source§fn clone(&self) -> RedeemerVal
fn clone(&self) -> RedeemerVal
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 RedeemerVal
impl Debug for RedeemerVal
Source§impl From<RedeemerVal> for JsValue
impl From<RedeemerVal> for JsValue
Source§fn from(value: RedeemerVal) -> Self
fn from(value: RedeemerVal) -> Self
Converts to this type from the input type.
Source§impl From<RedeemerVal> for RedeemerVal
impl From<RedeemerVal> for RedeemerVal
Source§fn from(native: RedeemerVal) -> Self
fn from(native: RedeemerVal) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RedeemerVal
impl FromWasmAbi for RedeemerVal
Source§impl Into<RedeemerVal> for RedeemerVal
impl Into<RedeemerVal> for RedeemerVal
Source§fn into(self) -> RedeemerVal
fn into(self) -> RedeemerVal
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for RedeemerVal
impl IntoWasmAbi for RedeemerVal
Source§impl LongRefFromWasmAbi for RedeemerVal
impl LongRefFromWasmAbi for RedeemerVal
Source§impl OptionFromWasmAbi for RedeemerVal
impl OptionFromWasmAbi for RedeemerVal
Source§impl OptionIntoWasmAbi for RedeemerVal
impl OptionIntoWasmAbi for RedeemerVal
Source§impl RefFromWasmAbi for RedeemerVal
impl RefFromWasmAbi for RedeemerVal
Source§type Anchor = RcRef<RedeemerVal>
type Anchor = RcRef<RedeemerVal>
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 RedeemerVal
impl RefMutFromWasmAbi for RedeemerVal
Source§impl TryFromJsValue for RedeemerVal
impl TryFromJsValue for RedeemerVal
Source§impl VectorFromWasmAbi for RedeemerVal
impl VectorFromWasmAbi for RedeemerVal
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RedeemerVal]>
Source§impl VectorIntoJsValue for RedeemerVal
impl VectorIntoJsValue for RedeemerVal
fn vector_into_jsvalue(vector: Box<[RedeemerVal]>) -> JsValue
Source§impl VectorIntoWasmAbi for RedeemerVal
impl VectorIntoWasmAbi for RedeemerVal
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RedeemerVal]>) -> Self::Abi
Source§impl WasmDescribeVector for RedeemerVal
impl WasmDescribeVector for RedeemerVal
impl SupportsConstructor for RedeemerVal
impl SupportsInstanceProperty for RedeemerVal
impl SupportsStaticProperty for RedeemerVal
Auto Trait Implementations§
impl Freeze for RedeemerVal
impl RefUnwindSafe for RedeemerVal
impl Send for RedeemerVal
impl Sync for RedeemerVal
impl Unpin for RedeemerVal
impl UnwindSafe for RedeemerVal
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.