pub struct SIPs {
pub sips: Vec<SIP>,
}Expand description
SIPs collection
Fields§
§sips: Vec<SIP>List of SIPs
Implementations§
Source§impl SIPs
impl SIPs
Sourcepub fn active_sips(&self) -> Vec<&SIP>
pub fn active_sips(&self) -> Vec<&SIP>
Get active SIPs
Sourcepub fn paused_sips(&self) -> Vec<&SIP>
pub fn paused_sips(&self) -> Vec<&SIP>
Get paused SIPs
Sourcepub fn total_monthly_commitment(&self) -> f64
pub fn total_monthly_commitment(&self) -> f64
Calculate total monthly commitment
Sourcepub fn total_annual_commitment(&self) -> f64
pub fn total_annual_commitment(&self) -> f64
Calculate total annual commitment
Sourcepub fn sips_due_soon(&self, days: i64) -> Vec<&SIP>
pub fn sips_due_soon(&self, days: i64) -> Vec<&SIP>
Get SIPs due soon
Sourcepub fn sips_for_fund(&self, trading_symbol: &str) -> Vec<&SIP>
pub fn sips_for_fund(&self, trading_symbol: &str) -> Vec<&SIP>
Get SIPs for a specific fund
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SIPs
impl<'de> Deserialize<'de> for SIPs
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 SIPs
impl RefUnwindSafe for SIPs
impl Send for SIPs
impl Sync for SIPs
impl Unpin for SIPs
impl UnwindSafe for SIPs
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