pub struct FastServiceFeatureBuilder { /* private fields */ }
Expand description
Provides the way to build fast service feature.
Implementations§
Source§impl FastServiceFeatureBuilder
impl FastServiceFeatureBuilder
Sourcepub fn set_violation_code(self, violation_code: ViolationCode) -> Self
pub fn set_violation_code(self, violation_code: ViolationCode) -> Self
Sets constraint violation code which is used to report back the reason of job’s unassignment.
Sourcepub fn set_demand_type_fn<F>(self, func: F) -> Self
pub fn set_demand_type_fn<F>(self, func: F) -> Self
Sets a function to get job’s demand type.
Sourcepub fn set_is_filtered_job<F>(self, func: F) -> Self
pub fn set_is_filtered_job<F>(self, func: F) -> Self
Sets a function which tells whether the job should NOT be considered for estimation.
Sourcepub fn set_transport(self, transport: Arc<dyn TransportCost>) -> Self
pub fn set_transport(self, transport: Arc<dyn TransportCost>) -> Self
Sets transport costs to estimate distance.
Sourcepub fn set_activity(self, activity: Arc<dyn ActivityCost>) -> Self
pub fn set_activity(self, activity: Arc<dyn ActivityCost>) -> Self
Sets activity costs to estimate job start/end time.
Sourcepub fn build(self) -> GenericResult<Feature>
pub fn build(self) -> GenericResult<Feature>
Builds fast service feature.
Auto Trait Implementations§
impl Freeze for FastServiceFeatureBuilder
impl !RefUnwindSafe for FastServiceFeatureBuilder
impl Send for FastServiceFeatureBuilder
impl Sync for FastServiceFeatureBuilder
impl Unpin for FastServiceFeatureBuilder
impl !UnwindSafe for FastServiceFeatureBuilder
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