pub struct RewardAddress(/* private fields */);Implementations§
Source§impl RewardAddress
impl RewardAddress
Source§impl RewardAddress
impl RewardAddress
pub fn new(network: u8, payment: &StakeCredential) -> Self
pub fn to_address(&self) -> Address
pub fn from_address(address: &Address) -> Option<RewardAddress>
pub fn network_id(&self) -> u8
pub fn payment(&self) -> StakeCredential
Trait Implementations§
Source§impl AsRef<RewardAddress> for RewardAddress
impl AsRef<RewardAddress> for RewardAddress
Source§fn as_ref(&self) -> &RewardAddress
fn as_ref(&self) -> &RewardAddress
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RewardAddress
impl Clone for RewardAddress
Source§fn clone(&self) -> RewardAddress
fn clone(&self) -> RewardAddress
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 RewardAddress
impl Debug for RewardAddress
Source§impl From<RewardAddress> for JsValue
impl From<RewardAddress> for JsValue
Source§fn from(value: RewardAddress) -> Self
fn from(value: RewardAddress) -> Self
Converts to this type from the input type.
Source§impl From<RewardAddress> for RewardAddress
impl From<RewardAddress> for RewardAddress
Source§fn from(native: RewardAddress) -> Self
fn from(native: RewardAddress) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RewardAddress
impl FromWasmAbi for RewardAddress
Source§impl Into<RewardAddress> for RewardAddress
impl Into<RewardAddress> for RewardAddress
Source§fn into(self) -> RewardAddress
fn into(self) -> RewardAddress
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for RewardAddress
impl IntoWasmAbi for RewardAddress
Source§impl LongRefFromWasmAbi for RewardAddress
impl LongRefFromWasmAbi for RewardAddress
Source§impl OptionFromWasmAbi for RewardAddress
impl OptionFromWasmAbi for RewardAddress
Source§impl OptionIntoWasmAbi for RewardAddress
impl OptionIntoWasmAbi for RewardAddress
Source§impl RefFromWasmAbi for RewardAddress
impl RefFromWasmAbi for RewardAddress
Source§type Anchor = RcRef<RewardAddress>
type Anchor = RcRef<RewardAddress>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for RewardAddress
impl RefMutFromWasmAbi for RewardAddress
Source§impl TryFromJsValue for RewardAddress
impl TryFromJsValue for RewardAddress
Source§impl VectorFromWasmAbi for RewardAddress
impl VectorFromWasmAbi for RewardAddress
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RewardAddress]>
Source§impl VectorIntoJsValue for RewardAddress
impl VectorIntoJsValue for RewardAddress
fn vector_into_jsvalue(vector: Box<[RewardAddress]>) -> JsValue
Source§impl VectorIntoWasmAbi for RewardAddress
impl VectorIntoWasmAbi for RewardAddress
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RewardAddress]>) -> Self::Abi
Source§impl WasmDescribeVector for RewardAddress
impl WasmDescribeVector for RewardAddress
impl SupportsConstructor for RewardAddress
impl SupportsInstanceProperty for RewardAddress
impl SupportsStaticProperty for RewardAddress
Auto Trait Implementations§
impl Freeze for RewardAddress
impl RefUnwindSafe for RewardAddress
impl Send for RewardAddress
impl Sync for RewardAddress
impl Unpin for RewardAddress
impl UnwindSafe for RewardAddress
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.