pub struct NamespaceMetadataTransactionBodyBuilder {
pub target_address: UnresolvedAddressDto,
pub scoped_metadata_key: u64,
pub target_namespace_id: NamespaceIdDto,
pub value_size_delta: u16,
pub value: Vec<u8>,
}
Expand description
Binary layout for a namespace metadata transaction.
Fields§
§target_address: UnresolvedAddressDto
Metadata target address.
scoped_metadata_key: u64
Metadata key scoped to source, target and type.
target_namespace_id: NamespaceIdDto
Target namespace 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 NamespaceMetadataTransactionBodyBuilder
impl NamespaceMetadataTransactionBodyBuilder
Sourcepub fn from_binary(payload: &[u8]) -> Self
pub fn from_binary(payload: &[u8]) -> Self
Creates an instance of NamespaceMetadataTransactionBodyBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A NamespaceMetadataTransactionBodyBuilder.
Trait Implementations§
Source§impl Clone for NamespaceMetadataTransactionBodyBuilder
impl Clone for NamespaceMetadataTransactionBodyBuilder
Source§fn clone(&self) -> NamespaceMetadataTransactionBodyBuilder
fn clone(&self) -> NamespaceMetadataTransactionBodyBuilder
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 NamespaceMetadataTransactionBodyBuilder
impl RefUnwindSafe for NamespaceMetadataTransactionBodyBuilder
impl Send for NamespaceMetadataTransactionBodyBuilder
impl Sync for NamespaceMetadataTransactionBodyBuilder
impl Unpin for NamespaceMetadataTransactionBodyBuilder
impl UnwindSafe for NamespaceMetadataTransactionBodyBuilder
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