pub struct OptionTimeDefinition { /* private fields */ }Expand description
Specifies the two timestamps required for option calculation: option maturity as well as the current time.
Trait Implementations§
Source§impl From<OptionTimeDefinition> for JsValue
impl From<OptionTimeDefinition> for JsValue
Source§fn from(value: OptionTimeDefinition) -> Self
fn from(value: OptionTimeDefinition) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for OptionTimeDefinition
impl FromWasmAbi for OptionTimeDefinition
Source§impl IntoWasmAbi for OptionTimeDefinition
impl IntoWasmAbi for OptionTimeDefinition
Source§impl RefFromWasmAbi for OptionTimeDefinition
impl RefFromWasmAbi for OptionTimeDefinition
Source§type Anchor = RcRef<OptionTimeDefinition>
type Anchor = RcRef<OptionTimeDefinition>
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 VectorFromWasmAbi for OptionTimeDefinition
impl VectorFromWasmAbi for OptionTimeDefinition
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OptionTimeDefinition]>
Source§impl VectorIntoWasmAbi for OptionTimeDefinition
impl VectorIntoWasmAbi for OptionTimeDefinition
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OptionTimeDefinition]>) -> Self::Abi
Source§impl WasmDescribeVector for OptionTimeDefinition
impl WasmDescribeVector for OptionTimeDefinition
impl SupportsConstructor for OptionTimeDefinition
impl SupportsInstanceProperty for OptionTimeDefinition
impl SupportsStaticProperty for OptionTimeDefinition
Auto Trait Implementations§
impl Freeze for OptionTimeDefinition
impl RefUnwindSafe for OptionTimeDefinition
impl Send for OptionTimeDefinition
impl Sync for OptionTimeDefinition
impl Unpin for OptionTimeDefinition
impl UnsafeUnpin for OptionTimeDefinition
impl UnwindSafe for OptionTimeDefinition
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::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.