pub enum Adjuster {
}
Expand description
A list of rules for performing date adjustment.
Variants§
Actual
Actual date without adjustment.
Following
Following adjustment rule.
ModifiedFollowing
Modified following adjustment rule.
Previous
Previous adjustment rule.
ModifiedPrevious
Modified previous adjustment rule.
FollowingSettle
Following adjustment rule, enforcing settlement calendar.
ModifiedFollowingSettle
Modified following adjustment rule, enforcing settlement calendar.
PreviousSettle
Previous adjustment rule, enforcing settlement calendar.
ModifiedPreviousSettle
Modified previous adjustment rule, enforcing settlement calendar.
BusDaysLagSettle(i32)
A set number of business days, defined by a given calendar, using calendar lag rules and enforcing settlement calendars.
CalDaysLagSettle(i32)
A set number of calendar days enforcing settlement calendars, defined by a given calendar.
FollowingExLast
Following adjustment rule except uses actual date for the last date in a vector.
FollowingExLastSettle
Following adjustment rule, enforcing settlement, except uses actual date for the last date in a vector.
Trait Implementations§
Source§impl Adjustment for Adjuster
impl Adjustment for Adjuster
Source§fn adjust<T: DateRoll>(
&self,
udate: &NaiveDateTime,
calendar: &T,
) -> NaiveDateTime
fn adjust<T: DateRoll>( &self, udate: &NaiveDateTime, calendar: &T, ) -> NaiveDateTime
Source§fn adjusts<T: DateRoll>(
&self,
udates: &Vec<NaiveDateTime>,
calendar: &T,
) -> Vec<NaiveDateTime>
fn adjusts<T: DateRoll>( &self, udates: &Vec<NaiveDateTime>, calendar: &T, ) -> Vec<NaiveDateTime>
Source§impl<'de> Deserialize<'de> for Adjuster
impl<'de> Deserialize<'de> for Adjuster
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>,
impl Copy for Adjuster
impl StructuralPartialEq for Adjuster
Auto Trait Implementations§
impl Freeze for Adjuster
impl RefUnwindSafe for Adjuster
impl Send for Adjuster
impl Sync for Adjuster
impl Unpin for Adjuster
impl UnwindSafe for Adjuster
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
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>
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>
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§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.