pub struct AllocationListStubBuilder { /* private fields */ }
Expand description
Builder for AllocationListStub
.
Implementations§
Source§impl AllocationListStubBuilder
impl AllocationListStubBuilder
pub fn name(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
pub fn job_id(&mut self, value: String) -> &mut Self
pub fn task_group(&mut self, value: String) -> &mut Self
pub fn followup_eval_id(&mut self, value: String) -> &mut Self
pub fn create_time(&mut self, value: i64) -> &mut Self
pub fn client_description(&mut self, value: String) -> &mut Self
pub fn deployment_status( &mut self, value: Option<AllocDeploymentStatus>, ) -> &mut Self
pub fn id(&mut self, value: String) -> &mut Self
pub fn node_name(&mut self, value: String) -> &mut Self
pub fn job_version(&mut self, value: u64) -> &mut Self
pub fn allocated_resources( &mut self, value: Option<AllocatedResources>, ) -> &mut Self
pub fn desired_status(&mut self, value: String) -> &mut Self
pub fn client_status(&mut self, value: String) -> &mut Self
pub fn next_allocation(&mut self, value: String) -> &mut Self
pub fn preempted_by_allocation(&mut self, value: String) -> &mut Self
pub fn node_id(&mut self, value: String) -> &mut Self
pub fn job_type(&mut self, value: String) -> &mut Self
pub fn task_states(&mut self, value: HashMap<String, TaskState>) -> &mut Self
pub fn preempted_allocations(&mut self, value: Vec<String>) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn eval_id(&mut self, value: String) -> &mut Self
pub fn desired_description(&mut self, value: String) -> &mut Self
pub fn reschedule_tracker( &mut self, value: Option<RescheduleTracker>, ) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn modify_time(&mut self, value: i64) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<AllocationListStub, AllocationListStubBuilderError>
pub fn build( &self, ) -> Result<AllocationListStub, AllocationListStubBuilderError>
Trait Implementations§
Source§impl Clone for AllocationListStubBuilder
impl Clone for AllocationListStubBuilder
Source§fn clone(&self) -> AllocationListStubBuilder
fn clone(&self) -> AllocationListStubBuilder
Returns a copy 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 AllocationListStubBuilder
impl RefUnwindSafe for AllocationListStubBuilder
impl Send for AllocationListStubBuilder
impl Sync for AllocationListStubBuilder
impl Unpin for AllocationListStubBuilder
impl UnwindSafe for AllocationListStubBuilder
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