pub struct ParameterizedJobConfig {
pub meta_optional: Vec<String>,
pub meta_required: Vec<String>,
pub payload: PayloadRequirement,
}Expand description
Represents a parameterized job that can be dispatched with a custom payload.
Fields§
§meta_optional: Vec<String>Specifies the set of metadata keys that may be provided when dispatching against the job as a string array.
meta_required: Vec<String>Specifies the set of metadata keys that must be provided when dispatching against the job as a string array.
payload: PayloadRequirementSpecifies the requirement of providing a payload when dispatching against the parameterized job. The default value is PayloadRequirement::Optional.
Trait Implementations§
Source§impl Clone for ParameterizedJobConfig
impl Clone for ParameterizedJobConfig
Source§fn clone(&self) -> ParameterizedJobConfig
fn clone(&self) -> ParameterizedJobConfig
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 moreSource§impl Debug for ParameterizedJobConfig
impl Debug for ParameterizedJobConfig
Source§impl Default for ParameterizedJobConfig
impl Default for ParameterizedJobConfig
Source§fn default() -> ParameterizedJobConfig
fn default() -> ParameterizedJobConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParameterizedJobConfig
impl<'de> Deserialize<'de> for ParameterizedJobConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParameterizedJobConfig
impl PartialEq for ParameterizedJobConfig
Source§impl Serialize for ParameterizedJobConfig
impl Serialize for ParameterizedJobConfig
impl Eq for ParameterizedJobConfig
impl StructuralPartialEq for ParameterizedJobConfig
Auto Trait Implementations§
impl Freeze for ParameterizedJobConfig
impl RefUnwindSafe for ParameterizedJobConfig
impl Send for ParameterizedJobConfig
impl Sync for ParameterizedJobConfig
impl Unpin for ParameterizedJobConfig
impl UnwindSafe for ParameterizedJobConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.