pub struct JobSummaryBuilder { /* private fields */ }
Expand description
Builder for JobSummary
.
Implementations§
Source§impl JobSummaryBuilder
impl JobSummaryBuilder
pub fn job_id(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
pub fn summary(&mut self, value: HashMap<String, TaskGroupSummary>) -> &mut Self
pub fn children(&mut self, value: Option<JobChildrenSummary>) -> &mut Self
Sourcepub fn create_index(&mut self, value: u64) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
Raft Indexes
pub fn modify_index(&mut self, value: u64) -> &mut Self
Sourcepub fn build(&self) -> Result<JobSummary, JobSummaryBuilderError>
pub fn build(&self) -> Result<JobSummary, JobSummaryBuilderError>
Trait Implementations§
Source§impl Clone for JobSummaryBuilder
impl Clone for JobSummaryBuilder
Source§fn clone(&self) -> JobSummaryBuilder
fn clone(&self) -> JobSummaryBuilder
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 JobSummaryBuilder
impl RefUnwindSafe for JobSummaryBuilder
impl Send for JobSummaryBuilder
impl Sync for JobSummaryBuilder
impl Unpin for JobSummaryBuilder
impl UnwindSafe for JobSummaryBuilder
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