pub struct RescheduleEventBuilder { /* private fields */ }
Expand description
Builder for RescheduleEvent
.
Implementations§
Source§impl RescheduleEventBuilder
impl RescheduleEventBuilder
Sourcepub fn reschedule_time(&mut self, value: i64) -> &mut Self
pub fn reschedule_time(&mut self, value: i64) -> &mut Self
RescheduleTime is the timestamp of a reschedule attempt
Sourcepub fn prev_alloc_id(&mut self, value: String) -> &mut Self
pub fn prev_alloc_id(&mut self, value: String) -> &mut Self
PrevAllocID is the ID of the previous allocation being restarted
Sourcepub fn prev_node_id(&mut self, value: String) -> &mut Self
pub fn prev_node_id(&mut self, value: String) -> &mut Self
PrevNodeID is the node ID of the previous allocation
Sourcepub fn build(&self) -> Result<RescheduleEvent, RescheduleEventBuilderError>
pub fn build(&self) -> Result<RescheduleEvent, RescheduleEventBuilderError>
Trait Implementations§
Source§impl Clone for RescheduleEventBuilder
impl Clone for RescheduleEventBuilder
Source§fn clone(&self) -> RescheduleEventBuilder
fn clone(&self) -> RescheduleEventBuilder
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 RescheduleEventBuilder
impl RefUnwindSafe for RescheduleEventBuilder
impl Send for RescheduleEventBuilder
impl Sync for RescheduleEventBuilder
impl Unpin for RescheduleEventBuilder
impl UnwindSafe for RescheduleEventBuilder
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