pub struct BaseAddress(/* private fields */);Implementations§
Source§impl BaseAddress
impl BaseAddress
pub fn new( network: u8, payment: &StakeCredential, stake: &StakeCredential, ) -> Self
pub fn to_address(&self) -> Address
pub fn from_address(address: &Address) -> Option<BaseAddress>
pub fn network_id(&self) -> u8
pub fn payment(&self) -> StakeCredential
pub fn stake(&self) -> StakeCredential
Trait Implementations§
Source§impl AsRef<BaseAddress> for BaseAddress
impl AsRef<BaseAddress> for BaseAddress
Source§fn as_ref(&self) -> &BaseAddress
fn as_ref(&self) -> &BaseAddress
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for BaseAddress
impl Clone for BaseAddress
Source§fn clone(&self) -> BaseAddress
fn clone(&self) -> BaseAddress
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 BaseAddress
impl Debug for BaseAddress
Source§impl From<BaseAddress> for BaseAddress
impl From<BaseAddress> for BaseAddress
Source§fn from(native: BaseAddress) -> Self
fn from(native: BaseAddress) -> Self
Converts to this type from the input type.
Source§impl From<BaseAddress> for JsValue
impl From<BaseAddress> for JsValue
Source§fn from(value: BaseAddress) -> Self
fn from(value: BaseAddress) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BaseAddress
impl FromWasmAbi for BaseAddress
Source§impl Into<BaseAddress> for BaseAddress
impl Into<BaseAddress> for BaseAddress
Source§fn into(self) -> BaseAddress
fn into(self) -> BaseAddress
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for BaseAddress
impl IntoWasmAbi for BaseAddress
Source§impl LongRefFromWasmAbi for BaseAddress
impl LongRefFromWasmAbi for BaseAddress
Source§impl OptionFromWasmAbi for BaseAddress
impl OptionFromWasmAbi for BaseAddress
Source§impl OptionIntoWasmAbi for BaseAddress
impl OptionIntoWasmAbi for BaseAddress
Source§impl RefFromWasmAbi for BaseAddress
impl RefFromWasmAbi for BaseAddress
Source§type Anchor = RcRef<BaseAddress>
type Anchor = RcRef<BaseAddress>
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 BaseAddress
impl RefMutFromWasmAbi for BaseAddress
Source§impl TryFromJsValue for BaseAddress
impl TryFromJsValue for BaseAddress
Source§impl VectorFromWasmAbi for BaseAddress
impl VectorFromWasmAbi for BaseAddress
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BaseAddress]>
Source§impl VectorIntoJsValue for BaseAddress
impl VectorIntoJsValue for BaseAddress
fn vector_into_jsvalue(vector: Box<[BaseAddress]>) -> JsValue
Source§impl VectorIntoWasmAbi for BaseAddress
impl VectorIntoWasmAbi for BaseAddress
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BaseAddress]>) -> Self::Abi
Source§impl WasmDescribeVector for BaseAddress
impl WasmDescribeVector for BaseAddress
impl SupportsConstructor for BaseAddress
impl SupportsInstanceProperty for BaseAddress
impl SupportsStaticProperty for BaseAddress
Auto Trait Implementations§
impl Freeze for BaseAddress
impl RefUnwindSafe for BaseAddress
impl Send for BaseAddress
impl Sync for BaseAddress
impl Unpin for BaseAddress
impl UnwindSafe for BaseAddress
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.