pub struct DispatchOptionsBuilder { /* private fields */ }
Expand description
Builder for DispatchOptions
.
Implementations§
Source§impl DispatchOptionsBuilder
impl DispatchOptionsBuilder
pub fn job_id(&mut self, value: String) -> &mut Self
pub fn meta(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn payload(&mut self, value: Vec<u8>) -> &mut Self
pub fn id_prefix_template(&mut self, value: String) -> &mut Self
pub fn priority(&mut self, value: i64) -> &mut Self
Sourcepub fn build(&self) -> Result<DispatchOptions, DispatchOptionsBuilderError>
pub fn build(&self) -> Result<DispatchOptions, DispatchOptionsBuilderError>
Trait Implementations§
Source§impl Clone for DispatchOptionsBuilder
impl Clone for DispatchOptionsBuilder
Source§fn clone(&self) -> DispatchOptionsBuilder
fn clone(&self) -> DispatchOptionsBuilder
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 DispatchOptionsBuilder
impl RefUnwindSafe for DispatchOptionsBuilder
impl Send for DispatchOptionsBuilder
impl Sync for DispatchOptionsBuilder
impl Unpin for DispatchOptionsBuilder
impl UnwindSafe for DispatchOptionsBuilder
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