Struct diem_types::account_config::resources::preburn_with_metadata::PreburnWithMetadataResource
source · pub struct PreburnWithMetadataResource { /* private fields */ }
Expand description
The preburn along with metadata held in a preburn queue.
Implementations§
source§impl PreburnWithMetadataResource
impl PreburnWithMetadataResource
pub fn new(preburn: PreburnResource, metadata: Vec<u8>) -> Self
pub fn preburn(&self) -> &PreburnResource
pub fn metadata(&self) -> &[u8] ⓘ
pub fn struct_tag_for_currency(currency_typetag: TypeTag) -> StructTag
pub fn access_path_for(currency_typetag: TypeTag) -> Vec<u8> ⓘ
Trait Implementations§
source§impl Arbitrary for PreburnWithMetadataResource
impl Arbitrary for PreburnWithMetadataResource
§type Parameters = (<PreburnResource as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
type Parameters = (<PreburnResource as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<PreburnResource as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (PreburnResource, Vec<u8, Global>)) -> PreburnWithMetadataResource>
type Strategy = Map<(<PreburnResource as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (PreburnResource, Vec<u8, Global>)) -> PreburnWithMetadataResource>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Debug for PreburnWithMetadataResource
impl Debug for PreburnWithMetadataResource
source§impl<'de> Deserialize<'de> for PreburnWithMetadataResource
impl<'de> Deserialize<'de> for PreburnWithMetadataResource
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MoveResource for PreburnWithMetadataResource
impl MoveResource for PreburnWithMetadataResource
source§impl MoveStructType for PreburnWithMetadataResource
impl MoveStructType for PreburnWithMetadataResource
const MODULE_NAME: &'static IdentStr = DIEM_MODULE_IDENTIFIER
const STRUCT_NAME: &'static IdentStr = _
fn type_params() -> Vec<TypeTag> ⓘ
fn module_identifier() -> Identifier
fn struct_identifier() -> Identifier
fn struct_tag() -> StructTag
Auto Trait Implementations§
impl RefUnwindSafe for PreburnWithMetadataResource
impl Send for PreburnWithMetadataResource
impl Sync for PreburnWithMetadataResource
impl Unpin for PreburnWithMetadataResource
impl UnwindSafe for PreburnWithMetadataResource
Blanket Implementations§
source§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.