Struct miden_objects::transaction::InputNote
source · pub struct InputNote { /* private fields */ }Expand description
An input note for a transaction.
Implementations§
source§impl InputNote
impl InputNote
sourcepub fn new(note: Note, proof: NoteInclusionProof) -> Self
pub fn new(note: Note, proof: NoteInclusionProof) -> Self
Returns a new instance of an InputNote with the specified note and proof.
sourcepub fn proof(&self) -> &NoteInclusionProof
pub fn proof(&self) -> &NoteInclusionProof
Returns a reference to the inclusion proof of the note.
sourcepub fn origin(&self) -> &NoteOrigin
pub fn origin(&self) -> &NoteOrigin
Returns a reference to the origin of the note.
Trait Implementations§
source§impl Deserializable for InputNote
impl Deserializable for InputNote
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 PartialEq for InputNote
impl PartialEq for InputNote
source§impl Serializable for InputNote
impl Serializable for InputNote
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
impl Eq for InputNote
impl StructuralPartialEq for InputNote
Auto Trait Implementations§
impl Freeze for InputNote
impl RefUnwindSafe for InputNote
impl Send for InputNote
impl Sync for InputNote
impl Unpin for InputNote
impl UnwindSafe for InputNote
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