pub struct TaskBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TaskBuilder<S>
impl<S: State> TaskBuilder<S>
Sourcepub fn location_id(self, value: LocationId) -> TaskBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
pub fn location_id(self, value: LocationId) -> TaskBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
Required.
Location id fact promoted into this staff contract.
Sourcepub fn kind(self, value: Kind) -> TaskBuilder<SetKind<S>>where
S::Kind: IsUnset,
pub fn kind(self, value: Kind) -> TaskBuilder<SetKind<S>>where
S::Kind: IsUnset,
Required.
Kind fact promoted into this staff contract.
Sourcepub fn title(self, value: Title) -> TaskBuilder<SetTitle<S>>where
S::Title: IsUnset,
pub fn title(self, value: Title) -> TaskBuilder<SetTitle<S>>where
S::Title: IsUnset,
Required.
Title fact promoted into this staff contract.
Sourcepub fn status(self, value: Status) -> TaskBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn status(self, value: Status) -> TaskBuilder<SetStatus<S>>where
S::Status: IsUnset,
Required.
Status fact promoted into this staff contract.
Sourcepub fn priority(self, value: Priority) -> TaskBuilder<SetPriority<S>>where
S::Priority: IsUnset,
pub fn priority(self, value: Priority) -> TaskBuilder<SetPriority<S>>where
S::Priority: IsUnset,
Required.
Priority fact promoted into this staff contract.
Sourcepub fn due_at(self, value: DateTime<Utc>) -> TaskBuilder<SetDueAt<S>>where
S::DueAt: IsUnset,
pub fn due_at(self, value: DateTime<Utc>) -> TaskBuilder<SetDueAt<S>>where
S::DueAt: IsUnset,
Required.
Due at fact promoted into this staff contract.
Sourcepub fn assignment(self, value: Assignment) -> TaskBuilder<SetAssignment<S>>where
S::Assignment: IsUnset,
pub fn assignment(self, value: Assignment) -> TaskBuilder<SetAssignment<S>>where
S::Assignment: IsUnset,
Required.
Assignment fact promoted into this staff contract.
Sourcepub fn source(self, value: Source) -> TaskBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn source(self, value: Source) -> TaskBuilder<SetSource<S>>where
S::Source: IsUnset,
Required.
Source fact promoted into this staff contract.
Sourcepub fn completion_evidence(
self,
value: Evidence,
) -> TaskBuilder<SetCompletionEvidence<S>>where
S::CompletionEvidence: IsUnset,
pub fn completion_evidence(
self,
value: Evidence,
) -> TaskBuilder<SetCompletionEvidence<S>>where
S::CompletionEvidence: IsUnset,
Sourcepub fn maybe_completion_evidence(
self,
value: Option<Evidence>,
) -> TaskBuilder<SetCompletionEvidence<S>>where
S::CompletionEvidence: IsUnset,
pub fn maybe_completion_evidence(
self,
value: Option<Evidence>,
) -> TaskBuilder<SetCompletionEvidence<S>>where
S::CompletionEvidence: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TaskBuilder<S>
impl<S> RefUnwindSafe for TaskBuilder<S>
impl<S> Send for TaskBuilder<S>
impl<S> Sync for TaskBuilder<S>
impl<S> Unpin for TaskBuilder<S>
impl<S> UnsafeUnpin for TaskBuilder<S>
impl<S> UnwindSafe for TaskBuilder<S>
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