Skip to main content

BriefActionBuilder

Struct BriefActionBuilder 

Source
pub struct BriefActionBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> BriefActionBuilder<S>

Source

pub fn build(self) -> BriefAction
where S: IsComplete,

Finish building and return the requested object

Source

pub fn id(self, value: ActionId) -> BriefActionBuilder<SetId<S>>
where S::Id: IsUnset,

Required.

Source

pub fn kind(self, value: BriefActionKind) -> BriefActionBuilder<SetKind<S>>
where S::Kind: IsUnset,

Required.

Source

pub fn priority( self, value: BriefActionPriority, ) -> BriefActionBuilder<SetPriority<S>>
where S::Priority: IsUnset,

Required.

Source

pub fn owner_persona( self, value: ManagerBriefPersona, ) -> BriefActionBuilder<SetOwnerPersona<S>>
where S::OwnerPersona: IsUnset,

Required.

Source

pub fn removed_manual_work( self, value: RemovedManualWork, ) -> BriefActionBuilder<SetRemovedManualWork<S>>
where S::RemovedManualWork: IsUnset,

Required.

Source

pub fn rationale( self, value: ActionRationale, ) -> BriefActionBuilder<SetRationale<S>>
where S::Rationale: IsUnset,

Required.

Source

pub fn source_facts( self, value: Vec<SourceFact>, ) -> BriefActionBuilder<SetSourceFacts<S>>
where S::SourceFacts: IsUnset,

Required.

Source

pub fn labor_impact( self, value: LaborImpactEstimate, ) -> BriefActionBuilder<SetLaborImpact<S>>
where S::LaborImpact: IsUnset,

Required.

Source

pub fn required_review_gates( self, value: Vec<ReviewGate>, ) -> BriefActionBuilder<SetRequiredReviewGates<S>>
where S::RequiredReviewGates: IsUnset,

Optional (Some / Option setters). Default: <Vec<policy::ReviewGate> as Default>::default().

Source

pub fn maybe_required_review_gates( self, value: Option<Vec<ReviewGate>>, ) -> BriefActionBuilder<SetRequiredReviewGates<S>>
where S::RequiredReviewGates: IsUnset,

Optional (Some / Option setters). Default: <Vec<policy::ReviewGate> as Default>::default().

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.