pub struct ProprietaryKey<Subtype = ProprietaryType>{
pub prefix: Vec<u8>,
pub subtype: Subtype,
pub key: Vec<u8>,
}
Expand description
Proprietary keys (i.e. keys starting with 0xFC byte) with their internal structure according to BIP 174.
Fields§
§prefix: Vec<u8>
Proprietary type prefix used for grouping together keys under some application and avoid namespace collision
subtype: Subtype
Custom proprietary subtype
key: Vec<u8>
Additional key bytes (like serialized public key data etc)
Implementations§
Source§impl<Subtype> ProprietaryKey<Subtype>
impl<Subtype> ProprietaryKey<Subtype>
Trait Implementations§
Source§impl<Subtype> Clone for ProprietaryKey<Subtype>
impl<Subtype> Clone for ProprietaryKey<Subtype>
Source§fn clone(&self) -> ProprietaryKey<Subtype>
fn clone(&self) -> ProprietaryKey<Subtype>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Subtype> Debug for ProprietaryKey<Subtype>
impl<Subtype> Debug for ProprietaryKey<Subtype>
Source§impl<Subtype> Decodable for ProprietaryKey<Subtype>
impl<Subtype> Decodable for ProprietaryKey<Subtype>
Source§impl<Subtype> Encodable for ProprietaryKey<Subtype>
impl<Subtype> Encodable for ProprietaryKey<Subtype>
Source§impl<Subtype> Hash for ProprietaryKey<Subtype>
impl<Subtype> Hash for ProprietaryKey<Subtype>
Source§impl<Subtype> Ord for ProprietaryKey<Subtype>
impl<Subtype> Ord for ProprietaryKey<Subtype>
Source§fn cmp(&self, other: &ProprietaryKey<Subtype>) -> Ordering
fn cmp(&self, other: &ProprietaryKey<Subtype>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Subtype> PartialEq for ProprietaryKey<Subtype>
impl<Subtype> PartialEq for ProprietaryKey<Subtype>
Source§impl<Subtype> PartialOrd for ProprietaryKey<Subtype>
impl<Subtype> PartialOrd for ProprietaryKey<Subtype>
impl<Subtype> Eq for ProprietaryKey<Subtype>
impl<Subtype> StructuralPartialEq for ProprietaryKey<Subtype>
Auto Trait Implementations§
impl<Subtype> Freeze for ProprietaryKey<Subtype>where
Subtype: Freeze,
impl<Subtype> RefUnwindSafe for ProprietaryKey<Subtype>where
Subtype: RefUnwindSafe,
impl<Subtype> Send for ProprietaryKey<Subtype>where
Subtype: Send,
impl<Subtype> Sync for ProprietaryKey<Subtype>where
Subtype: Sync,
impl<Subtype> Unpin for ProprietaryKey<Subtype>where
Subtype: Unpin,
impl<Subtype> UnwindSafe for ProprietaryKey<Subtype>where
Subtype: UnwindSafe,
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