pub struct DispatchRequest {
pub conversation_id: String,
pub request: ActivityRequest,
}Expand description
Typed request sent through an activity dispatch conversation.
Fields§
§conversation_id: StringConversation correlation identifier.
request: ActivityRequestActivity request scheduled by the workflow.
Implementations§
Source§impl DispatchRequest
impl DispatchRequest
Sourcepub const CONTENT_TYPE: &'static str = DISPATCH_REQUEST_CONTENT_TYPE
pub const CONTENT_TYPE: &'static str = DISPATCH_REQUEST_CONTENT_TYPE
Content type expected by typed dispatch request channels.
Sourcepub const fn new(conversation_id: String, request: ActivityRequest) -> Self
pub const fn new(conversation_id: String, request: ActivityRequest) -> Self
Creates a typed dispatch request.
Trait Implementations§
Source§impl Clone for DispatchRequest
impl Clone for DispatchRequest
Source§fn clone(&self) -> DispatchRequest
fn clone(&self) -> DispatchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DispatchRequest
impl Debug for DispatchRequest
impl Eq for DispatchRequest
Source§impl PartialEq for DispatchRequest
impl PartialEq for DispatchRequest
Source§fn eq(&self, other: &DispatchRequest) -> bool
fn eq(&self, other: &DispatchRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchRequest
Auto Trait Implementations§
impl Freeze for DispatchRequest
impl RefUnwindSafe for DispatchRequest
impl Send for DispatchRequest
impl Sync for DispatchRequest
impl Unpin for DispatchRequest
impl UnsafeUnpin for DispatchRequest
impl UnwindSafe for DispatchRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.