pub struct MosaicMetadataTransactionBodyBuilder {
pub target_address: UnresolvedAddressDto,
pub scoped_metadata_key: u64,
pub target_mosaic_id: UnresolvedMosaicIdDto,
pub value_size_delta: u16,
pub value: Vec<u8>,
}
Expand description
Binary layout for a mosaic metadata transaction.
Fields§
§target_address: UnresolvedAddressDto
Metadata target address.
scoped_metadata_key: u64
Metadata key scoped to source, target and type.
target_mosaic_id: UnresolvedMosaicIdDto
Target mosaic identifier.
value_size_delta: u16
Change in value size in bytes.
value: Vec<u8>
Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
Implementations§
Source§impl MosaicMetadataTransactionBodyBuilder
impl MosaicMetadataTransactionBodyBuilder
Sourcepub fn from_binary(payload: &[u8]) -> Self
pub fn from_binary(payload: &[u8]) -> Self
Creates an instance of MosaicMetadataTransactionBodyBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A MosaicMetadataTransactionBodyBuilder.
Trait Implementations§
Source§impl Clone for MosaicMetadataTransactionBodyBuilder
impl Clone for MosaicMetadataTransactionBodyBuilder
Source§fn clone(&self) -> MosaicMetadataTransactionBodyBuilder
fn clone(&self) -> MosaicMetadataTransactionBodyBuilder
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 MosaicMetadataTransactionBodyBuilder
impl RefUnwindSafe for MosaicMetadataTransactionBodyBuilder
impl Send for MosaicMetadataTransactionBodyBuilder
impl Sync for MosaicMetadataTransactionBodyBuilder
impl Unpin for MosaicMetadataTransactionBodyBuilder
impl UnwindSafe for MosaicMetadataTransactionBodyBuilder
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