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