pub struct JsGlvModel { /* private fields */ }Available on crate feature
js only.Expand description
Wrapper of GlvModel.
Implementations§
Source§impl JsGlvModel
impl JsGlvModel
Sourcepub fn glv_token_address(&self) -> String
pub fn glv_token_address(&self) -> String
Returns GLV token address.
Sourcepub fn long_token_address(&self) -> String
pub fn long_token_address(&self) -> String
Returns long token address.
Sourcepub fn short_token_address(&self) -> String
pub fn short_token_address(&self) -> String
Returns short token address.
Trait Implementations§
Source§impl Clone for JsGlvModel
impl Clone for JsGlvModel
Source§fn clone(&self) -> JsGlvModel
fn clone(&self) -> JsGlvModel
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 From<GlvModel> for JsGlvModel
impl From<GlvModel> for JsGlvModel
Source§impl From<JsGlvModel> for JsValue
impl From<JsGlvModel> for JsValue
Source§fn from(value: JsGlvModel) -> Self
fn from(value: JsGlvModel) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for JsGlvModel
impl FromWasmAbi for JsGlvModel
Source§impl IntoWasmAbi for JsGlvModel
impl IntoWasmAbi for JsGlvModel
Source§impl LongRefFromWasmAbi for JsGlvModel
impl LongRefFromWasmAbi for JsGlvModel
Source§impl OptionFromWasmAbi for JsGlvModel
impl OptionFromWasmAbi for JsGlvModel
Source§impl OptionIntoWasmAbi for JsGlvModel
impl OptionIntoWasmAbi for JsGlvModel
Source§impl RefFromWasmAbi for JsGlvModel
impl RefFromWasmAbi for JsGlvModel
Source§type Anchor = RcRef<JsGlvModel>
type Anchor = RcRef<JsGlvModel>
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 JsGlvModel
impl RefMutFromWasmAbi for JsGlvModel
Source§impl TryFromJsValue for JsGlvModel
impl TryFromJsValue for JsGlvModel
Source§impl VectorFromWasmAbi for JsGlvModel
impl VectorFromWasmAbi for JsGlvModel
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[JsGlvModel]>
Source§impl VectorIntoJsValue for JsGlvModel
impl VectorIntoJsValue for JsGlvModel
fn vector_into_jsvalue(vector: Box<[JsGlvModel]>) -> JsValue
Source§impl VectorIntoWasmAbi for JsGlvModel
impl VectorIntoWasmAbi for JsGlvModel
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[JsGlvModel]>) -> Self::Abi
Source§impl WasmDescribeVector for JsGlvModel
impl WasmDescribeVector for JsGlvModel
impl SupportsConstructor for JsGlvModel
impl SupportsInstanceProperty for JsGlvModel
impl SupportsStaticProperty for JsGlvModel
Auto Trait Implementations§
impl Freeze for JsGlvModel
impl RefUnwindSafe for JsGlvModel
impl Send for JsGlvModel
impl Sync for JsGlvModel
impl Unpin for JsGlvModel
impl UnwindSafe for JsGlvModel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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::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.