Struct scrypto::data::manifest::ManifestValueDisplayContext
source · pub struct ManifestValueDisplayContext<'a> {
pub address_bech32_encoder: Option<&'a AddressBech32Encoder>,
pub bucket_names: Option<&'a NonIterMap<ManifestBucket, String>>,
pub proof_names: Option<&'a NonIterMap<ManifestProof, String>>,
pub address_reservation_names: Option<&'a NonIterMap<ManifestAddressReservation, String>>,
pub address_names: Option<&'a NonIterMap<u32, String>>,
}
Expand description
Note - this is quite similar to ManifestDecompilationDisplayContext
- except this is used with formatting of an encoded payload, rather than a ManifestValue itself
Fields§
§address_bech32_encoder: Option<&'a AddressBech32Encoder>
§bucket_names: Option<&'a NonIterMap<ManifestBucket, String>>
§proof_names: Option<&'a NonIterMap<ManifestProof, String>>
§address_reservation_names: Option<&'a NonIterMap<ManifestAddressReservation, String>>
§address_names: Option<&'a NonIterMap<u32, String>>
Implementations§
source§impl<'a> ManifestValueDisplayContext<'a>
impl<'a> ManifestValueDisplayContext<'a>
pub fn no_context() -> ManifestValueDisplayContext<'a>
pub fn with_optional_bech32( address_bech32_encoder: Option<&'a AddressBech32Encoder> ) -> ManifestValueDisplayContext<'a>
pub fn with_bech32_and_names( address_bech32_encoder: Option<&'a AddressBech32Encoder>, bucket_names: &'a NonIterMap<ManifestBucket, String>, proof_names: &'a NonIterMap<ManifestProof, String>, address_reservation_names: &'a NonIterMap<ManifestAddressReservation, String>, address_names: &'a NonIterMap<u32, String> ) -> ManifestValueDisplayContext<'a>
pub fn get_bucket_name(&self, bucket_id: &ManifestBucket) -> Option<&str>
pub fn get_proof_name(&self, proof_id: &ManifestProof) -> Option<&str>
pub fn get_address_reservation_name( &self, address_reservation_id: &ManifestAddressReservation ) -> Option<&str>
pub fn get_address_name(&self, address_id: &u32) -> Option<&str>
Trait Implementations§
source§impl<'a> Clone for ManifestValueDisplayContext<'a>
impl<'a> Clone for ManifestValueDisplayContext<'a>
source§fn clone(&self) -> ManifestValueDisplayContext<'a>
fn clone(&self) -> ManifestValueDisplayContext<'a>
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<'a> CustomDisplayContext<'a> for ManifestValueDisplayContext<'a>
impl<'a> CustomDisplayContext<'a> for ManifestValueDisplayContext<'a>
source§impl<'a> Debug for ManifestValueDisplayContext<'a>
impl<'a> Debug for ManifestValueDisplayContext<'a>
source§impl<'a> Default for ManifestValueDisplayContext<'a>
impl<'a> Default for ManifestValueDisplayContext<'a>
source§fn default() -> ManifestValueDisplayContext<'a>
fn default() -> ManifestValueDisplayContext<'a>
Returns the “default value” for a type. Read more
source§impl<'a> Into<ManifestValueDisplayContext<'a>> for &'a AddressBech32Encoder
impl<'a> Into<ManifestValueDisplayContext<'a>> for &'a AddressBech32Encoder
source§fn into(self) -> ManifestValueDisplayContext<'a>
fn into(self) -> ManifestValueDisplayContext<'a>
Converts this type into the (usually inferred) input type.
source§impl<'a> Into<ManifestValueDisplayContext<'a>> for Option<&'a AddressBech32Encoder>
impl<'a> Into<ManifestValueDisplayContext<'a>> for Option<&'a AddressBech32Encoder>
source§fn into(self) -> ManifestValueDisplayContext<'a>
fn into(self) -> ManifestValueDisplayContext<'a>
Converts this type into the (usually inferred) input type.
impl<'a> Copy for ManifestValueDisplayContext<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ManifestValueDisplayContext<'a>
impl<'a> Send for ManifestValueDisplayContext<'a>
impl<'a> Sync for ManifestValueDisplayContext<'a>
impl<'a> Unpin for ManifestValueDisplayContext<'a>
impl<'a> UnwindSafe for ManifestValueDisplayContext<'a>
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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