pub struct JsHydraParameters { /* private fields */ }
Expand description
Parameters of a Hydra account added to a {@link Vault}
Implementations§
Source§impl JsHydraParameters
impl JsHydraParameters
Sourcepub fn new(network: &str, account: i32) -> Result<JsHydraParameters, JsValue>
pub fn new(network: &str, account: i32) -> Result<JsHydraParameters, JsValue>
Creates a parameter object for a Hydra account. The network name needs to be one of {@link allNetworkNames} and the account index must be an 31-bit non-negative number. Most wallets use only a few accounts, and there is no way yet to name the account in the current version.
Note that there is a negligable chance that the given account cannot be used with the given seed, in which case an error is thrown and another index needs to be tried.
Trait Implementations§
Source§impl From<JsHydraParameters> for JsValue
impl From<JsHydraParameters> for JsValue
Source§fn from(value: JsHydraParameters) -> Self
fn from(value: JsHydraParameters) -> Self
Converts to this type from the input type.
Source§impl From<Parameters> for JsHydraParameters
impl From<Parameters> for JsHydraParameters
Source§fn from(inner: Parameters) -> Self
fn from(inner: Parameters) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsHydraParameters
impl FromWasmAbi for JsHydraParameters
Source§impl IntoWasmAbi for JsHydraParameters
impl IntoWasmAbi for JsHydraParameters
Source§impl RefFromWasmAbi for JsHydraParameters
impl RefFromWasmAbi for JsHydraParameters
Source§type Anchor = RcRef<JsHydraParameters>
type Anchor = RcRef<JsHydraParameters>
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 JsHydraParameters
impl TryFromJsValue for JsHydraParameters
Source§impl VectorFromWasmAbi for JsHydraParameters
impl VectorFromWasmAbi for JsHydraParameters
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsHydraParameters]>
Source§impl VectorIntoJsValue for JsHydraParameters
impl VectorIntoJsValue for JsHydraParameters
fn vector_into_jsvalue(vector: Box<[JsHydraParameters]>) -> JsValue
Source§impl VectorIntoWasmAbi for JsHydraParameters
impl VectorIntoWasmAbi for JsHydraParameters
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsHydraParameters]>) -> Self::Abi
Source§impl WasmDescribeVector for JsHydraParameters
impl WasmDescribeVector for JsHydraParameters
Source§impl Wraps<Parameters> for JsHydraParameters
impl Wraps<Parameters> for JsHydraParameters
Source§fn inner(&self) -> &Parameters
fn inner(&self) -> &Parameters
Converts a reference to a WASM type to a reference to the underlying Rust type.
impl SupportsConstructor for JsHydraParameters
impl SupportsInstanceProperty for JsHydraParameters
impl SupportsStaticProperty for JsHydraParameters
Auto Trait Implementations§
impl Freeze for JsHydraParameters
impl RefUnwindSafe for JsHydraParameters
impl Send for JsHydraParameters
impl Sync for JsHydraParameters
impl Unpin for JsHydraParameters
impl UnwindSafe for JsHydraParameters
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> 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::Abi
Source§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
.