pub struct ActivityHeartbeatResponse {
pub cancel_requested: bool,
pub heartbeat_recorded: bool,
pub can_continue: Option<bool>,
pub reason: Option<String>,
pub run_closed_reason: Option<String>,
pub run_closed_at: Option<String>,
pub lease_expires_at: Option<String>,
pub last_heartbeat_at: Option<String>,
}Fields§
§cancel_requested: bool§heartbeat_recorded: bool§can_continue: Option<bool>§reason: Option<String>§run_closed_reason: Option<String>§run_closed_at: Option<String>§lease_expires_at: Option<String>§last_heartbeat_at: Option<String>Implementations§
Source§impl ActivityHeartbeatResponse
impl ActivityHeartbeatResponse
Sourcepub fn should_stop(&self) -> bool
pub fn should_stop(&self) -> bool
Whether the activity should stop instead of attempting completion.
Trait Implementations§
Source§impl Clone for ActivityHeartbeatResponse
impl Clone for ActivityHeartbeatResponse
Source§fn clone(&self) -> ActivityHeartbeatResponse
fn clone(&self) -> ActivityHeartbeatResponse
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 ActivityHeartbeatResponse
impl Debug for ActivityHeartbeatResponse
Source§impl<'de> Deserialize<'de> for ActivityHeartbeatResponse
impl<'de> Deserialize<'de> for ActivityHeartbeatResponse
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 ActivityHeartbeatResponse
impl RefUnwindSafe for ActivityHeartbeatResponse
impl Send for ActivityHeartbeatResponse
impl Sync for ActivityHeartbeatResponse
impl Unpin for ActivityHeartbeatResponse
impl UnsafeUnpin for ActivityHeartbeatResponse
impl UnwindSafe for ActivityHeartbeatResponse
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