Struct effectum::JobUpdateBuilder
source · pub struct JobUpdateBuilder { /* private fields */ }
Expand description
A builder for a JobUpdate
Implementations§
source§impl JobUpdateBuilder
impl JobUpdateBuilder
sourcepub fn run_at(self, run_at: OffsetDateTime) -> Self
pub fn run_at(self, run_at: OffsetDateTime) -> Self
Alter the job’s run_at time
sourcepub fn json_payload<T: ?Sized + Serialize>(self, payload: &T) -> Result<Self>
pub fn json_payload<T: ?Sized + Serialize>(self, payload: &T) -> Result<Self>
Alter the job’s payload, encoding the argument as JSON.
sourcepub fn update_checkpointed_payload(
self,
update_checkpointed_payload: bool
) -> Self
pub fn update_checkpointed_payload( self, update_checkpointed_payload: bool ) -> Self
Configure whether or not the updated payload should also update the checkpointed payload, if one exists.
Auto Trait Implementations§
impl Freeze for JobUpdateBuilder
impl RefUnwindSafe for JobUpdateBuilder
impl Send for JobUpdateBuilder
impl Sync for JobUpdateBuilder
impl Unpin for JobUpdateBuilder
impl UnwindSafe for JobUpdateBuilder
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