pub struct JobResultBuilder { /* private fields */ }Expand description
Builder for constructing job results
Implementations§
Source§impl JobResultBuilder
impl JobResultBuilder
Sourcepub fn with_denied(self, denied: bool) -> Self
pub fn with_denied(self, denied: bool) -> Self
Sourcepub fn with_assignee(self, assignee: String) -> Self
pub fn with_assignee(self, assignee: String) -> Self
Sourcepub fn with_due_date(self, due_date: String) -> Self
pub fn with_due_date(self, due_date: String) -> Self
Sourcepub fn with_follow_up_date(self, follow_up_date: String) -> Self
pub fn with_follow_up_date(self, follow_up_date: String) -> Self
Sourcepub fn with_candidate_users(self, candidate_users: Vec<String>) -> Self
pub fn with_candidate_users(self, candidate_users: Vec<String>) -> Self
Sourcepub fn with_candidate_groups(self, candidate_groups: Vec<String>) -> Self
pub fn with_candidate_groups(self, candidate_groups: Vec<String>) -> Self
Sourcepub fn with_priority(self, priority: i32) -> Self
pub fn with_priority(self, priority: i32) -> Self
Sourcepub fn build(self) -> CompleteJobRequest<WithKey>
pub fn build(self) -> CompleteJobRequest<WithKey>
Builds the final CompleteJobRequest with the configured job result
Consumes the builder and returns the configured request ready for sending
§Returns
The configured CompleteJobRequest<WithKey> instance
Trait Implementations§
Source§impl Clone for JobResultBuilder
impl Clone for JobResultBuilder
Source§fn clone(&self) -> JobResultBuilder
fn clone(&self) -> JobResultBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 JobResultBuilder
impl !RefUnwindSafe for JobResultBuilder
impl Send for JobResultBuilder
impl Sync for JobResultBuilder
impl Unpin for JobResultBuilder
impl !UnwindSafe for JobResultBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request