pub struct CompensationPlanV1Builder { /* private fields */ }Expand description
Builder for CompensationPlanV1.
Implementations§
Source§impl CompensationPlanV1Builder
impl CompensationPlanV1Builder
Sourcepub fn new(
compensation_plan_id: CompensationPlanId,
effect_intent_id: EffectIntentId,
citation: V25ConstitutionCitation,
compensation_required: bool,
compensation_class: CompensationClassV1,
compensation_steps: Vec<String>,
success_criteria: Vec<String>,
owner_ref: impl Into<String>,
latest_start: impl Into<String>,
advisory_only: bool,
) -> Self
pub fn new( compensation_plan_id: CompensationPlanId, effect_intent_id: EffectIntentId, citation: V25ConstitutionCitation, compensation_required: bool, compensation_class: CompensationClassV1, compensation_steps: Vec<String>, success_criteria: Vec<String>, owner_ref: impl Into<String>, latest_start: impl Into<String>, advisory_only: bool, ) -> Self
Creates a builder with the required compensation plan fields.
Sourcepub fn build(self) -> Result<CompensationPlanV1, EffectRuntimeValidationError>
pub fn build(self) -> Result<CompensationPlanV1, EffectRuntimeValidationError>
Builds a validated compensation plan artifact.
Trait Implementations§
Source§impl Clone for CompensationPlanV1Builder
impl Clone for CompensationPlanV1Builder
Source§fn clone(&self) -> CompensationPlanV1Builder
fn clone(&self) -> CompensationPlanV1Builder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompensationPlanV1Builder
impl RefUnwindSafe for CompensationPlanV1Builder
impl Send for CompensationPlanV1Builder
impl Sync for CompensationPlanV1Builder
impl Unpin for CompensationPlanV1Builder
impl UnsafeUnpin for CompensationPlanV1Builder
impl UnwindSafe for CompensationPlanV1Builder
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