pub struct MosaicGlobalRestrictionTransactionBodyBuilder {
pub mosaic_id: UnresolvedMosaicIdDto,
pub reference_mosaic_id: UnresolvedMosaicIdDto,
pub restriction_key: u64,
pub previous_restriction_value: u64,
pub new_restriction_value: u64,
pub previous_restriction_type: MosaicRestrictionTypeDto,
pub new_restriction_type: MosaicRestrictionTypeDto,
}Expand description
Binary layout for a mosaic global restriction transaction.
Fields§
§mosaic_id: UnresolvedMosaicIdDtoIdentifier of the mosaic being restricted.
reference_mosaic_id: UnresolvedMosaicIdDtoIdentifier of the mosaic providing the restriction key.
restriction_key: u64Restriction key relative to the reference mosaic identifier.
previous_restriction_value: u64Previous restriction value.
new_restriction_value: u64New restriction value.
previous_restriction_type: MosaicRestrictionTypeDtoPrevious restriction type.
new_restriction_type: MosaicRestrictionTypeDtoNew restriction type.
Implementations§
Source§impl MosaicGlobalRestrictionTransactionBodyBuilder
impl MosaicGlobalRestrictionTransactionBodyBuilder
Sourcepub fn from_binary(payload: &[u8]) -> Self
pub fn from_binary(payload: &[u8]) -> Self
Creates an instance of MosaicGlobalRestrictionTransactionBodyBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A MosaicGlobalRestrictionTransactionBodyBuilder.
Trait Implementations§
Source§impl Clone for MosaicGlobalRestrictionTransactionBodyBuilder
impl Clone for MosaicGlobalRestrictionTransactionBodyBuilder
Source§fn clone(&self) -> MosaicGlobalRestrictionTransactionBodyBuilder
fn clone(&self) -> MosaicGlobalRestrictionTransactionBodyBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MosaicGlobalRestrictionTransactionBodyBuilder
impl RefUnwindSafe for MosaicGlobalRestrictionTransactionBodyBuilder
impl Send for MosaicGlobalRestrictionTransactionBodyBuilder
impl Sync for MosaicGlobalRestrictionTransactionBodyBuilder
impl Unpin for MosaicGlobalRestrictionTransactionBodyBuilder
impl UnwindSafe for MosaicGlobalRestrictionTransactionBodyBuilder
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