Struct cml_chain_wasm::plutus::RedeemerKey
source · pub struct RedeemerKey(/* private fields */);Implementations§
source§impl RedeemerKey
impl RedeemerKey
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 from_cbor_bytes(cbor_bytes: &[u8]) -> Result<RedeemerKey, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<RedeemerKey, 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 from_cbor_hex(cbor_bytes: &str) -> Result<RedeemerKey, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<RedeemerKey, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl RedeemerKey
impl RedeemerKey
source§impl RedeemerKey
impl RedeemerKey
pub fn tag(&self) -> RedeemerTag
pub fn index(&self) -> u64
pub fn new(tag: RedeemerTag, index: u64) -> Self
Trait Implementations§
source§impl AsRef<RedeemerKey> for RedeemerKey
impl AsRef<RedeemerKey> for RedeemerKey
source§fn as_ref(&self) -> &RedeemerKey
fn as_ref(&self) -> &RedeemerKey
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for RedeemerKey
impl Clone for RedeemerKey
source§fn clone(&self) -> RedeemerKey
fn clone(&self) -> RedeemerKey
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 Debug for RedeemerKey
impl Debug for RedeemerKey
source§impl From<RedeemerKey> for JsValue
impl From<RedeemerKey> for JsValue
source§fn from(value: RedeemerKey) -> Self
fn from(value: RedeemerKey) -> Self
Converts to this type from the input type.
source§impl From<RedeemerKey> for RedeemerKey
impl From<RedeemerKey> for RedeemerKey
source§fn from(native: RedeemerKey) -> Self
fn from(native: RedeemerKey) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for RedeemerKey
impl FromWasmAbi for RedeemerKey
source§impl Into<RedeemerKey> for RedeemerKey
impl Into<RedeemerKey> for RedeemerKey
source§fn into(self) -> RedeemerKey
fn into(self) -> RedeemerKey
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for RedeemerKey
impl IntoWasmAbi for RedeemerKey
source§impl OptionFromWasmAbi for RedeemerKey
impl OptionFromWasmAbi for RedeemerKey
source§impl OptionIntoWasmAbi for RedeemerKey
impl OptionIntoWasmAbi for RedeemerKey
source§impl RefFromWasmAbi for RedeemerKey
impl RefFromWasmAbi for RedeemerKey
§type Anchor = Ref<'static, RedeemerKey>
type Anchor = Ref<'static, RedeemerKey>
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 RedeemerKey
impl RefMutFromWasmAbi for RedeemerKey
Auto Trait Implementations§
impl Freeze for RedeemerKey
impl RefUnwindSafe for RedeemerKey
impl Send for RedeemerKey
impl Sync for RedeemerKey
impl Unpin for RedeemerKey
impl UnwindSafe for RedeemerKey
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> 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,
§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.