Struct chain_impl_mockchain::certificate::MintToken
source · pub struct MintToken {
pub name: TokenName,
pub policy: MintingPolicy,
pub to: Identifier,
pub value: Value,
}
Fields§
§name: TokenName
§policy: MintingPolicy
§to: Identifier
§value: Value
Implementations§
Trait Implementations§
source§impl Arbitrary for MintToken
impl Arbitrary for MintToken
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl DeserializeFromSlice for MintToken
impl DeserializeFromSlice for MintToken
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
source§impl From<MintToken> for Certificate
impl From<MintToken> for Certificate
source§impl PartialEq<MintToken> for MintToken
impl PartialEq<MintToken> for MintToken
source§impl Payload for MintToken
impl Payload for MintToken
const HAS_DATA: bool = true
const HAS_AUTH: bool = false
type Auth = ()
fn payload_data(&self) -> PayloadData<Self>
fn payload_auth_data(_: &Self::Auth) -> PayloadAuthData<Self>
fn payload_to_certificate_slice( p: PayloadSlice<'_, Self> ) -> Option<CertificateSlice<'_>>
source§impl Serialize for MintToken
impl Serialize for MintToken
impl Eq for MintToken
impl StructuralEq for MintToken
impl StructuralPartialEq for MintToken
Auto Trait Implementations§
impl RefUnwindSafe for MintToken
impl Send for MintToken
impl Sync for MintToken
impl Unpin for MintToken
impl UnwindSafe for MintToken
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