pub struct MessageBodyEmbed {
pub callbacks: Option<Vec<String>>,
pub errbacks: Option<Vec<String>>,
pub chain: Option<Vec<String>>,
pub chord: Option<String>,
}
Expand description
Contains callback / errback signatures and work-flow primitives.
Fields§
§callbacks: Option<Vec<String>>
An array of serialized signatures of tasks to call with the result of this task.
errbacks: Option<Vec<String>>
An array of serialized signatures of tasks to call if this task results in an error.
Note that errbacks
work differently from callbacks
because the error returned by
a task may not be serializable. Therefore the errbacks
tasks are passed the task ID
instead of the error itself.
chain: Option<Vec<String>>
An array of serialized signatures of the remaining tasks in the chain.
chord: Option<String>
The serialized signature of the chord callback.
Trait Implementations§
Source§impl Debug for MessageBodyEmbed
impl Debug for MessageBodyEmbed
Source§impl Default for MessageBodyEmbed
impl Default for MessageBodyEmbed
Source§fn default() -> MessageBodyEmbed
fn default() -> MessageBodyEmbed
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageBodyEmbed
impl<'de> Deserialize<'de> for MessageBodyEmbed
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 MessageBodyEmbed
impl PartialEq for MessageBodyEmbed
Source§impl Serialize for MessageBodyEmbed
impl Serialize for MessageBodyEmbed
impl Eq for MessageBodyEmbed
impl StructuralPartialEq for MessageBodyEmbed
Auto Trait Implementations§
impl Freeze for MessageBodyEmbed
impl RefUnwindSafe for MessageBodyEmbed
impl Send for MessageBodyEmbed
impl Sync for MessageBodyEmbed
impl Unpin for MessageBodyEmbed
impl UnwindSafe for MessageBodyEmbed
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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