Struct cml_chain_wasm::plutus::Redeemers
source · pub struct Redeemers(/* private fields */);Implementations§
source§impl Redeemers
impl Redeemers
pub fn to_flat_format(&self) -> LegacyRedeemerList
source§impl Redeemers
impl Redeemers
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<Redeemers, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<Redeemers, 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.
source§impl Redeemers
impl Redeemers
pub fn new_arr_legacy_redeemer(arr_legacy_redeemer: &LegacyRedeemerList) -> Self
pub fn new_map_redeemer_key_to_redeemer_val( map_redeemer_key_to_redeemer_val: &MapRedeemerKeyToRedeemerVal ) -> Self
pub fn kind(&self) -> RedeemersKind
pub fn as_arr_legacy_redeemer(&self) -> Option<LegacyRedeemerList>
pub fn as_map_redeemer_key_to_redeemer_val( &self ) -> Option<MapRedeemerKeyToRedeemerVal>
Trait Implementations§
source§impl FromWasmAbi for Redeemers
impl FromWasmAbi for Redeemers
source§impl IntoWasmAbi for Redeemers
impl IntoWasmAbi for Redeemers
source§impl OptionFromWasmAbi for Redeemers
impl OptionFromWasmAbi for Redeemers
source§impl OptionIntoWasmAbi for Redeemers
impl OptionIntoWasmAbi for Redeemers
source§impl RefFromWasmAbi for Redeemers
impl RefFromWasmAbi for Redeemers
source§impl RefMutFromWasmAbi for Redeemers
impl RefMutFromWasmAbi for Redeemers
Auto Trait Implementations§
impl Freeze for Redeemers
impl RefUnwindSafe for Redeemers
impl Send for Redeemers
impl Sync for Redeemers
impl Unpin for Redeemers
impl UnwindSafe for Redeemers
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.