Enum miden_objects::notes::NoteType
source · #[repr(u8)]pub enum NoteType {
OffChain = 2,
Encrypted = 3,
Public = 1,
}Variants§
OffChain = 2
Notes with this type have only their hash published to the network.
Encrypted = 3
Notes with type are shared with the network encrypted.
Public = 1
Notes with this type are fully shared with the network.
Trait Implementations§
source§impl Deserializable for NoteType
impl Deserializable for NoteType
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 NoteType
impl PartialEq for NoteType
source§impl Serializable for NoteType
impl Serializable for NoteType
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> for NoteType
impl TryFrom<BaseElement> for NoteType
impl Copy for NoteType
impl Eq for NoteType
impl StructuralPartialEq for NoteType
Auto Trait Implementations§
impl Freeze for NoteType
impl RefUnwindSafe for NoteType
impl Send for NoteType
impl Sync for NoteType
impl Unpin for NoteType
impl UnwindSafe for NoteType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)