pub struct CallbackSignature {
pub task: String,
pub task_id: Option<Uuid>,
pub args: Vec<Value>,
pub kwargs: HashMap<String, Value>,
pub options: HashMap<String, Value>,
pub immutable: bool,
pub subtask_type: Option<String>,
}Expand description
Callback signature for link/errback
Fields§
§task: StringTask name
task_id: Option<Uuid>Task ID (optional, will be generated if not provided)
args: Vec<Value>Positional arguments
kwargs: HashMap<String, Value>Keyword arguments
options: HashMap<String, Value>Task options
immutable: boolImmutable flag (don’t append parent result)
subtask_type: Option<String>Subtask type (for internal use)
Implementations§
Source§impl CallbackSignature
impl CallbackSignature
Sourcepub fn with_task_id(self, task_id: Uuid) -> Self
pub fn with_task_id(self, task_id: Uuid) -> Self
Set task ID
Sourcepub fn with_kwarg(self, key: impl Into<String>, value: Value) -> Self
pub fn with_kwarg(self, key: impl Into<String>, value: Value) -> Self
Add a keyword argument
Sourcepub fn with_option(self, key: impl Into<String>, value: Value) -> Self
pub fn with_option(self, key: impl Into<String>, value: Value) -> Self
Add an option
Trait Implementations§
Source§impl Clone for CallbackSignature
impl Clone for CallbackSignature
Source§fn clone(&self) -> CallbackSignature
fn clone(&self) -> CallbackSignature
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 CallbackSignature
impl Debug for CallbackSignature
Source§impl<'de> Deserialize<'de> for CallbackSignature
impl<'de> Deserialize<'de> for CallbackSignature
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
Auto Trait Implementations§
impl Freeze for CallbackSignature
impl RefUnwindSafe for CallbackSignature
impl Send for CallbackSignature
impl Sync for CallbackSignature
impl Unpin for CallbackSignature
impl UnwindSafe for CallbackSignature
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