Enum zcash_address::unified::Typecode
source · pub enum Typecode {
P2pkh,
P2sh,
Sapling,
Orchard,
Unknown(u32),
}
Expand description
The known Receiver and Viewing Key types.
The typecodes 0xFFFA..=0xFFFF
reserved for experiments are currently not
distinguished from unknown values, and will be parsed as Typecode::Unknown
.
Variants§
P2pkh
A transparent P2PKH address, FVK, or IVK encoding as specified in ZIP 316.
P2sh
Sapling
A Sapling raw address, FVK, or IVK encoding as specified in ZIP 316.
Orchard
An Orchard raw address, FVK, or IVK encoding as specified in ZIP 316.
Unknown(u32)
An unknown or experimental typecode.
Implementations§
Trait Implementations§
source§impl PartialEq for Typecode
impl PartialEq for Typecode
impl Copy for Typecode
impl Eq for Typecode
impl StructuralPartialEq for Typecode
Auto Trait Implementations§
impl RefUnwindSafe for Typecode
impl Send for Typecode
impl Sync for Typecode
impl Unpin for Typecode
impl UnwindSafe for Typecode
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