Enum miden_client::notes::NoteFile
source · pub enum NoteFile {
NoteId(NoteId),
NoteDetails(NoteDetails, Option<NoteTag>),
NoteWithProof(Note, NoteInclusionProof),
}Expand description
A serialized representation of a note.
Variants§
NoteId(NoteId)
The note’s details aren’t known.
NoteDetails(NoteDetails, Option<NoteTag>)
The note has not yet been recorded on chain.
An optional tag is included for note tracking.
NoteWithProof(Note, NoteInclusionProof)
The note has been recorded on chain.
Trait Implementations§
source§impl Deserializable for NoteFile
impl Deserializable for NoteFile
source§fn read_from<R>(source: &mut R) -> Result<NoteFile, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<NoteFile, DeserializationError>where
R: ByteReader,
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<NoteDetails> for NoteFile
impl From<NoteDetails> for NoteFile
source§fn from(details: NoteDetails) -> NoteFile
fn from(details: NoteDetails) -> NoteFile
Converts to this type from the input type.
source§impl Serializable for NoteFile
impl Serializable for NoteFile
source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
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
Auto Trait Implementations§
impl Freeze for NoteFile
impl RefUnwindSafe for NoteFile
impl Send for NoteFile
impl Sync for NoteFile
impl Unpin for NoteFile
impl UnwindSafe for NoteFile
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