Struct miden_objects::notes::NoteMetadata
source · pub struct NoteMetadata { /* private fields */ }Expand description
Represents metadata associated with a note.
The metadata consists of:
- sender is the account which created the note.
- tag is a value which can be used by the recipient(s) to identify notes intended for them.
Implementations§
source§impl NoteMetadata
impl NoteMetadata
Trait Implementations§
source§impl Clone for NoteMetadata
impl Clone for NoteMetadata
source§fn clone(&self) -> NoteMetadata
fn clone(&self) -> NoteMetadata
Returns a copy 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 moresource§impl Debug for NoteMetadata
impl Debug for NoteMetadata
source§impl Deserializable for NoteMetadata
impl Deserializable for NoteMetadata
source§fn read_from<R: ByteReader>(
source: &mut R
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl From<&NoteMetadata> for Word
impl From<&NoteMetadata> for Word
source§fn from(metadata: &NoteMetadata) -> Self
fn from(metadata: &NoteMetadata) -> Self
Converts to this type from the input type.
source§impl From<NoteMetadata> for Word
impl From<NoteMetadata> for Word
source§fn from(metadata: NoteMetadata) -> Self
fn from(metadata: NoteMetadata) -> Self
Converts to this type from the input type.
source§impl PartialEq for NoteMetadata
impl PartialEq for NoteMetadata
source§fn eq(&self, other: &NoteMetadata) -> bool
fn eq(&self, other: &NoteMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for NoteMetadata
impl Serializable for NoteMetadata
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
source§impl TryFrom<[BaseElement; 4]> for NoteMetadata
impl TryFrom<[BaseElement; 4]> for NoteMetadata
impl Copy for NoteMetadata
impl Eq for NoteMetadata
impl StructuralPartialEq for NoteMetadata
Auto Trait Implementations§
impl RefUnwindSafe for NoteMetadata
impl Send for NoteMetadata
impl Sync for NoteMetadata
impl Unpin for NoteMetadata
impl UnwindSafe for NoteMetadata
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