pub struct CostPeriodBuilder { /* private fields */ }Implementations§
Source§impl CostPeriodBuilder
impl CostPeriodBuilder
pub const fn new() -> Self
pub const fn build(self) -> CostPeriod
pub const fn cost(self, cost: Cost) -> Self
pub const fn load(self, load: LoadType) -> Self
pub const fn fixed_cost(self, int: i64, fract: u8) -> Self
pub const fn fixed_cost_subunit(self, subunit: f64) -> Self
pub const fn timezone(self, timezone: Timezone) -> Self
pub const fn include(self, period_type: Include) -> Self
pub const fn months(self, from: Month, to: Month) -> Self
pub const fn month(self, month: Month) -> Self
pub const fn hours(self, from: u8, to_inclusive: u8) -> Self
pub const fn exclude_holidays(self, country: Country) -> Self
pub const fn exclude_weekends(self) -> Self
Trait Implementations§
Source§impl Clone for CostPeriodBuilder
impl Clone for CostPeriodBuilder
Source§fn clone(&self) -> CostPeriodBuilder
fn clone(&self) -> CostPeriodBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CostPeriodBuilder
impl RefUnwindSafe for CostPeriodBuilder
impl Send for CostPeriodBuilder
impl Sync for CostPeriodBuilder
impl Unpin for CostPeriodBuilder
impl UnwindSafe for CostPeriodBuilder
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