pub struct FundingFeeParams<T> { /* private fields */ }
Expand description
Funding Fee Parameters.
Implementations§
Source§impl<T> FundingFeeParams<T>
impl<T> FundingFeeParams<T>
Sourcepub fn builder() -> FundingFeeParamsBuilder<T, ((), (), (), (), (), (), (), ())>
pub fn builder() -> FundingFeeParamsBuilder<T, ((), (), (), (), (), (), (), ())>
Create a builder for building FundingFeeParams
.
On the builder, call .exponent(...)
, .funding_factor(...)
, .increase_factor_per_second(...)
, .decrease_factor_per_second(...)
, .max_factor_per_second(...)
, .min_factor_per_second(...)
, .threshold_for_stable_funding(...)
, .threshold_for_decrease_funding(...)
to set the values of the fields.
Finally, call .build()
to create the instance of FundingFeeParams
.
Source§impl<T> FundingFeeParams<T>
impl<T> FundingFeeParams<T>
Sourcepub fn increase_factor_per_second(&self) -> &T
pub fn increase_factor_per_second(&self) -> &T
Get funding increase factor per second.
Sourcepub fn decrease_factor_per_second(&self) -> &T
pub fn decrease_factor_per_second(&self) -> &T
Get funding decrease factor per second.
Sourcepub fn max_factor_per_second(&self) -> &T
pub fn max_factor_per_second(&self) -> &T
Get max funding factor per second.
Sourcepub fn min_factor_per_second(&self) -> &T
pub fn min_factor_per_second(&self) -> &T
Get min funding factor per second.
Sourcepub fn threshold_for_stable_funding(&self) -> &T
pub fn threshold_for_stable_funding(&self) -> &T
Threshold for stable funding.
Sourcepub fn threshold_for_decrease_funding(&self) -> &T
pub fn threshold_for_decrease_funding(&self) -> &T
Threshold for decrease funding.
Trait Implementations§
Source§impl<T: Clone> Clone for FundingFeeParams<T>
impl<T: Clone> Clone for FundingFeeParams<T>
Source§fn clone(&self) -> FundingFeeParams<T>
fn clone(&self) -> FundingFeeParams<T>
Returns a copy 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<T: Debug> Debug for FundingFeeParams<T>
impl<T: Debug> Debug for FundingFeeParams<T>
impl<T: Copy> Copy for FundingFeeParams<T>
Auto Trait Implementations§
impl<T> Freeze for FundingFeeParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for FundingFeeParams<T>where
T: RefUnwindSafe,
impl<T> Send for FundingFeeParams<T>where
T: Send,
impl<T> Sync for FundingFeeParams<T>where
T: Sync,
impl<T> Unpin for FundingFeeParams<T>where
T: Unpin,
impl<T> UnwindSafe for FundingFeeParams<T>where
T: UnwindSafe,
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 more