pub struct SIPParams {
pub trading_symbol: String,
pub amount: f64,
pub instalments: Option<u32>,
pub frequency: SIPFrequency,
pub initial_amount: Option<f64>,
pub tag: Option<String>,
}
Expand description
SIP creation parameters
Fields§
§trading_symbol: String
Trading symbol
amount: f64
Installment amount
instalments: Option<u32>
Number of installments (optional for perpetual SIP)
frequency: SIPFrequency
Frequency
initial_amount: Option<f64>
Initial amount (for first installment, optional)
tag: Option<String>
Tag
Implementations§
Source§impl SIPParams
impl SIPParams
Sourcepub fn new(trading_symbol: String, amount: f64, frequency: SIPFrequency) -> Self
pub fn new(trading_symbol: String, amount: f64, frequency: SIPFrequency) -> Self
Create a new SIP
Sourcepub fn instalments(self, instalments: u32) -> Self
pub fn instalments(self, instalments: u32) -> Self
Set number of installments
Sourcepub fn initial_amount(self, initial_amount: f64) -> Self
pub fn initial_amount(self, initial_amount: f64) -> Self
Set initial amount
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SIPParams
impl<'de> Deserialize<'de> for SIPParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SIPParams
impl RefUnwindSafe for SIPParams
impl Send for SIPParams
impl Sync for SIPParams
impl Unpin for SIPParams
impl UnwindSafe for SIPParams
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