pub struct AllocationBuilder { /* private fields */ }
Expand description
Builder for Allocation
.
Implementations§
Source§impl AllocationBuilder
impl AllocationBuilder
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn id(&mut self, value: String) -> &mut Self
pub fn services(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn reschedule_tracker( &mut self, value: Option<RescheduleTracker>, ) -> &mut Self
pub fn preempted_allocations(&mut self, value: Vec<String>) -> &mut Self
pub fn deployment_status( &mut self, value: Option<AllocDeploymentStatus>, ) -> &mut Self
pub fn next_allocation(&mut self, value: String) -> &mut Self
pub fn allocated_resources( &mut self, value: Option<AllocatedResources>, ) -> &mut Self
pub fn task_states(&mut self, value: HashMap<String, TaskState>) -> &mut Self
pub fn followup_eval_id(&mut self, value: String) -> &mut Self
pub fn network_status(&mut self, value: Option<AllocNetworkStatus>) -> &mut Self
pub fn task_group(&mut self, value: String) -> &mut Self
pub fn metrics(&mut self, value: Option<AllocationMetric>) -> &mut Self
pub fn desired_transition(&mut self, value: DesiredTransition) -> &mut Self
pub fn modify_time(&mut self, value: i64) -> &mut Self
pub fn job(&mut self, value: Option<Job>) -> &mut Self
pub fn resources(&mut self, value: Option<Resources>) -> &mut Self
pub fn desired_status(&mut self, value: String) -> &mut Self
pub fn create_time(&mut self, value: i64) -> &mut Self
pub fn node_name(&mut self, value: String) -> &mut Self
pub fn client_status(&mut self, value: String) -> &mut Self
pub fn deployment_id(&mut self, value: String) -> &mut Self
pub fn previous_allocation(&mut self, value: String) -> &mut Self
pub fn client_description(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn node_id(&mut self, value: String) -> &mut Self
pub fn desired_description(&mut self, value: String) -> &mut Self
pub fn alloc_modify_index(&mut self, value: u64) -> &mut Self
pub fn eval_id(&mut self, value: String) -> &mut Self
pub fn job_id(&mut self, value: String) -> &mut Self
pub fn task_resources(&mut self, value: HashMap<String, Resources>) -> &mut Self
pub fn preempted_by_allocation(&mut self, value: String) -> &mut Self
Sourcepub fn build(&self) -> Result<Allocation, AllocationBuilderError>
pub fn build(&self) -> Result<Allocation, AllocationBuilderError>
Trait Implementations§
Source§impl Clone for AllocationBuilder
impl Clone for AllocationBuilder
Source§fn clone(&self) -> AllocationBuilder
fn clone(&self) -> AllocationBuilder
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 AllocationBuilder
impl RefUnwindSafe for AllocationBuilder
impl Send for AllocationBuilder
impl Sync for AllocationBuilder
impl Unpin for AllocationBuilder
impl UnwindSafe for AllocationBuilder
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