pub struct MetadataEntryBuilder { /* private fields */ }
Expand description
Binary layout of a metadata entry.
Implementations§
Source§impl MetadataEntryBuilder
impl MetadataEntryBuilder
Sourcepub fn from_binary(_bytes: &[u8]) -> Self
pub fn from_binary(_bytes: &[u8]) -> Self
Creates an instance of MetadataEntryBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A MetadataEntryBuilder.
Sourcepub fn get_source_address(&self) -> AddressDto
pub fn get_source_address(&self) -> AddressDto
Sourcepub fn get_target_address(&self) -> AddressDto
pub fn get_target_address(&self) -> AddressDto
Sourcepub fn get_scoped_metadata_key(&self) -> ScopedMetadataKeyDto
pub fn get_scoped_metadata_key(&self) -> ScopedMetadataKeyDto
Gets metadata key scoped to source, target and type.
§Returns
A Metadata key scoped to source, target and type.
Sourcepub fn get_target_id(&self) -> u64
pub fn get_target_id(&self) -> u64
Sourcepub fn get_metadata_type(&self) -> MetadataTypeDto
pub fn get_metadata_type(&self) -> MetadataTypeDto
Sourcepub fn get_value(&self) -> MetadataValueBuilder
pub fn get_value(&self) -> MetadataValueBuilder
Trait Implementations§
Source§impl Clone for MetadataEntryBuilder
impl Clone for MetadataEntryBuilder
Source§fn clone(&self) -> MetadataEntryBuilder
fn clone(&self) -> MetadataEntryBuilder
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 MetadataEntryBuilder
impl RefUnwindSafe for MetadataEntryBuilder
impl Send for MetadataEntryBuilder
impl Sync for MetadataEntryBuilder
impl Unpin for MetadataEntryBuilder
impl UnwindSafe for MetadataEntryBuilder
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