Enum miden_client::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>(source: &mut R) -> Result<NoteType, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<NoteType, 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<'de> Deserialize<'de> for NoteType
impl<'de> Deserialize<'de> for NoteType
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NoteType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NoteType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<NoteType> for BaseElement
impl From<NoteType> for BaseElement
source§fn from(id: NoteType) -> BaseElement
fn from(id: NoteType) -> BaseElement
Converts to this type from the input type.
source§impl PartialEq for NoteType
impl PartialEq for NoteType
source§impl Serializable for NoteType
impl Serializable for NoteType
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
source§impl Serialize for NoteType
impl Serialize for NoteType
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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)