pub struct DcaCreateArgs {
pub in_amount: i64,
pub in_amount_per_cycle: i64,
pub cycle_frequency: i64,
pub min_out_amount: Option<i64>,
pub max_out_amount: Option<i64>,
pub start_at: Option<i64>,
}Expand description
Parsed arguments from an OpenDca/OpenDcaV2 instruction.
Fields§
§in_amount: i64§in_amount_per_cycle: i64§cycle_frequency: i64§min_out_amount: Option<i64>§max_out_amount: Option<i64>§start_at: Option<i64>Auto Trait Implementations§
impl Freeze for DcaCreateArgs
impl RefUnwindSafe for DcaCreateArgs
impl Send for DcaCreateArgs
impl Sync for DcaCreateArgs
impl Unpin for DcaCreateArgs
impl UnsafeUnpin for DcaCreateArgs
impl UnwindSafe for DcaCreateArgs
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> 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