pub enum NoteState {
Spendable {
expires_after_rotations: u32,
},
Frozen {
expires_after_rotations: u32,
},
Expired,
Unknown,
OtherMint,
}Expand description
Where a note stands, as far as a MintView can tell.
Variants§
Spendable
The note can be spent now.
Fields
Frozen
The note sits in the last layer and cannot move until the next rotation.
Expired
The note’s layer was dropped, so it is worthless.
Unknown
The note is newer than the view: read the mint’s info again.
OtherMint
The note belongs to another mint.
Trait Implementations§
impl Copy for NoteState
Source§impl<'de> Deserialize<'de> for NoteState
impl<'de> Deserialize<'de> for NoteState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NoteState
impl StructuralPartialEq for NoteState
Auto Trait Implementations§
impl Freeze for NoteState
impl RefUnwindSafe for NoteState
impl Send for NoteState
impl Sync for NoteState
impl Unpin for NoteState
impl UnsafeUnpin for NoteState
impl UnwindSafe for NoteState
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