Skip to main content

OutcomeRecordBuilder

Struct OutcomeRecordBuilder 

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

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

Implementations§

Source§

impl<S: State> OutcomeRecordBuilder<S>

Source

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

Finish building and return the requested object

Source

pub fn action_id(self, value: ActionId) -> OutcomeRecordBuilder<SetActionId<S>>
where S::ActionId: IsUnset,

Required.

Source

pub fn recorded_by( self, value: ActorRef, ) -> OutcomeRecordBuilder<SetRecordedBy<S>>
where S::RecordedBy: IsUnset,

Required.

Source

pub fn outcome( self, value: FeedbackOutcome, ) -> OutcomeRecordBuilder<SetOutcome<S>>
where S::Outcome: IsUnset,

Required.

Source

pub fn before_minutes( self, value: LaborMinutes, ) -> OutcomeRecordBuilder<SetBeforeMinutes<S>>
where S::BeforeMinutes: IsUnset,

Required.

Source

pub fn actual_minutes( self, value: LaborMinutes, ) -> OutcomeRecordBuilder<SetActualMinutes<S>>
where S::ActualMinutes: IsUnset,

Required.

Source

pub fn source_record_refs( self, value: Vec<RecordRef>, ) -> OutcomeRecordBuilder<SetSourceRecordRefs<S>>
where S::SourceRecordRefs: IsUnset,

Optional (Some / Option setters). Default: <Vec<source::RecordRef> as Default>::default().

Source

pub fn maybe_source_record_refs( self, value: Option<Vec<RecordRef>>, ) -> OutcomeRecordBuilder<SetSourceRecordRefs<S>>
where S::SourceRecordRefs: IsUnset,

Optional (Some / Option setters). Default: <Vec<source::RecordRef> as Default>::default().

Source

pub fn issue_refs( self, value: Vec<IssueRef>, ) -> OutcomeRecordBuilder<SetIssueRefs<S>>
where S::IssueRefs: IsUnset,

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

Source

pub fn maybe_issue_refs( self, value: Option<Vec<IssueRef>>, ) -> OutcomeRecordBuilder<SetIssueRefs<S>>
where S::IssueRefs: IsUnset,

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

Source

pub fn reviewed_resolution_status( self, value: ResolutionStatus, ) -> OutcomeRecordBuilder<SetReviewedResolutionStatus<S>>
where S::ReviewedResolutionStatus: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_reviewed_resolution_status( self, value: Option<ResolutionStatus>, ) -> OutcomeRecordBuilder<SetReviewedResolutionStatus<S>>
where S::ReviewedResolutionStatus: IsUnset,

Optional (Some / Option setters).

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.