pub struct PollActivityTaskResponse {
pub task: Option<ActivityTask>,
pub poll_status: Option<String>,
pub reason: Option<String>,
}Fields§
§task: Option<ActivityTask>§poll_status: Option<String>§reason: Option<String>Implementations§
Source§impl PollActivityTaskResponse
impl PollActivityTaskResponse
Sourcepub fn outcome(&self) -> WorkerPollOutcome
pub fn outcome(&self) -> WorkerPollOutcome
Classify this response without parsing server display text.
Trait Implementations§
Source§impl Clone for PollActivityTaskResponse
impl Clone for PollActivityTaskResponse
Source§impl Debug for PollActivityTaskResponse
impl Debug for PollActivityTaskResponse
Source§impl<'de> Deserialize<'de> for PollActivityTaskResponse
impl<'de> Deserialize<'de> for PollActivityTaskResponse
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 Forget for PollActivityTaskResponse
impl Freeze for PollActivityTaskResponsewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for PollActivityTaskResponse
impl RefUnwindSafe for PollActivityTaskResponse
impl Send for PollActivityTaskResponse
impl Sync for PollActivityTaskResponse
impl Unpin for PollActivityTaskResponse
impl UnsafeUnpin for PollActivityTaskResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for PollActivityTaskResponse
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