#[repr(u8)]pub enum AddressHeaderKind {
BasePaymentKeyStakeKey = 0,
BasePaymentScriptStakeKey = 1,
BasePaymentKeyStakeScript = 2,
BasePaymentScriptStakeScript = 3,
PointerKey = 4,
PointerScript = 5,
EnterpriseKey = 6,
EnterpriseScript = 7,
Byron = 8,
RewardKey = 14,
RewardScript = 15,
}Expand description
Careful: this enum doesn’t include the network ID part of the header
ex: base address isn’t 0b0000_0000 but instead 0b0000
Use header_matches_kind if you don’t want to implement the bitwise operators yourself
Variants§
BasePaymentKeyStakeKey = 0
BasePaymentScriptStakeKey = 1
BasePaymentKeyStakeScript = 2
BasePaymentScriptStakeScript = 3
PointerKey = 4
PointerScript = 5
EnterpriseKey = 6
EnterpriseScript = 7
Byron = 8
RewardKey = 14
RewardScript = 15
Trait Implementations§
Source§impl Clone for AddressHeaderKind
impl Clone for AddressHeaderKind
Source§fn clone(&self) -> AddressHeaderKind
fn clone(&self) -> AddressHeaderKind
Returns a duplicate 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 Debug for AddressHeaderKind
impl Debug for AddressHeaderKind
Source§impl From<AddressHeaderKind> for JsValue
impl From<AddressHeaderKind> for JsValue
Source§fn from(value: AddressHeaderKind) -> JsValue
fn from(value: AddressHeaderKind) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for AddressHeaderKind
impl FromWasmAbi for AddressHeaderKind
Source§impl IntoWasmAbi for AddressHeaderKind
impl IntoWasmAbi for AddressHeaderKind
Source§impl OptionFromWasmAbi for AddressHeaderKind
impl OptionFromWasmAbi for AddressHeaderKind
Source§fn is_none(val: &<AddressHeaderKind as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<AddressHeaderKind as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for AddressHeaderKind
impl OptionIntoWasmAbi for AddressHeaderKind
Source§fn none() -> <AddressHeaderKind as IntoWasmAbi>::Abi
fn none() -> <AddressHeaderKind as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl Ord for AddressHeaderKind
impl Ord for AddressHeaderKind
Source§fn cmp(&self, other: &AddressHeaderKind) -> Ordering
fn cmp(&self, other: &AddressHeaderKind) -> 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 PartialEq for AddressHeaderKind
impl PartialEq for AddressHeaderKind
Source§impl PartialOrd for AddressHeaderKind
impl PartialOrd for AddressHeaderKind
Source§impl TryFromJsValue for AddressHeaderKind
impl TryFromJsValue for AddressHeaderKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<AddressHeaderKind, <AddressHeaderKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<AddressHeaderKind, <AddressHeaderKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for AddressHeaderKind
impl VectorFromWasmAbi for AddressHeaderKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <AddressHeaderKind as VectorFromWasmAbi>::Abi, ) -> Box<[AddressHeaderKind]>
Source§impl VectorIntoWasmAbi for AddressHeaderKind
impl VectorIntoWasmAbi for AddressHeaderKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[AddressHeaderKind]>, ) -> <AddressHeaderKind as VectorIntoWasmAbi>::Abi
impl Copy for AddressHeaderKind
impl Eq for AddressHeaderKind
impl StructuralPartialEq for AddressHeaderKind
Auto Trait Implementations§
impl Freeze for AddressHeaderKind
impl RefUnwindSafe for AddressHeaderKind
impl Send for AddressHeaderKind
impl Sync for AddressHeaderKind
impl Unpin for AddressHeaderKind
impl UnwindSafe for AddressHeaderKind
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.