#[repr(C)]pub struct NoteMetadata {
pub attachment: Word,
pub header: Word,
}Expand description
The note metadata returned by *_note::get_metadata procedures.
In the Miden protocol, metadata retrieval returns both the note attachment and the metadata header as separate words.
Fields§
§attachment: WordThe attachment of the note.
header: WordThe metadata header of the note.
Implementations§
Source§impl NoteMetadata
impl NoteMetadata
Sourcepub fn new(attachment: Word, header: Word) -> Self
pub fn new(attachment: Word, header: Word) -> Self
Creates a new NoteMetadata from attachment and header.
Trait Implementations§
Source§impl Clone for NoteMetadata
impl Clone for NoteMetadata
Source§fn clone(&self) -> NoteMetadata
fn clone(&self) -> NoteMetadata
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 moreSource§impl Debug for NoteMetadata
impl Debug for NoteMetadata
Source§impl PartialEq for NoteMetadata
impl PartialEq for NoteMetadata
impl Copy for NoteMetadata
impl Eq for NoteMetadata
impl StructuralPartialEq for NoteMetadata
Auto Trait Implementations§
impl Freeze for NoteMetadata
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