pub struct WebhookConditionStatus {
pub condition: Option<WebhookSuccessCondition>,
pub delivery_attempts: i32,
pub last_attempt_time: Option<Timestamp>,
pub next_retry_time: Option<Timestamp>,
pub last_delivery_id: Option<String>,
pub last_http_status: Option<i32>,
pub last_error_message: Option<String>,
pub started_at: Option<Timestamp>,
pub terminal_failure_reason: Option<i32>,
}Expand description
Status tracking for webhook success conditions. Tracks delivery attempts, retry timing, and the last response from the external system. Note: Secret management for retries is handled internally in Temporal workflow state, not exposed in this public API message.
Fields§
§condition: Option<WebhookSuccessCondition>The original webhook condition configuration being monitored
delivery_attempts: i32Number of delivery attempts made so far
last_attempt_time: Option<Timestamp>Timestamp of the last delivery attempt
next_retry_time: Option<Timestamp>Timestamp when the next retry should be attempted (null if no retry scheduled)
last_delivery_id: Option<String>Unique ID of the last delivery attempt (unset if no attempts made yet) Generated per-attempt to correlate webhook deliveries with external system logs
last_http_status: Option<i32>HTTP status code from the last delivery attempt
last_error_message: Option<String>Error message from the last delivery attempt (if failed)
started_at: Option<Timestamp>Timestamp when webhook condition evaluation started
terminal_failure_reason: Option<i32>Terminal failure reason for this webhook condition. Only set when the condition transitions to FAILED status. Remains unset during retries (use last_error_message for intermediate failures).
Implementations§
Source§impl WebhookConditionStatus
impl WebhookConditionStatus
Sourcepub fn last_delivery_id(&self) -> &str
pub fn last_delivery_id(&self) -> &str
Returns the value of last_delivery_id, or the default value if last_delivery_id is unset.
Sourcepub fn last_http_status(&self) -> i32
pub fn last_http_status(&self) -> i32
Returns the value of last_http_status, or the default value if last_http_status is unset.
Sourcepub fn last_error_message(&self) -> &str
pub fn last_error_message(&self) -> &str
Returns the value of last_error_message, or the default value if last_error_message is unset.
Sourcepub fn terminal_failure_reason(&self) -> WebhookFailureReason
pub fn terminal_failure_reason(&self) -> WebhookFailureReason
Returns the enum value of terminal_failure_reason, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_terminal_failure_reason(&mut self, value: WebhookFailureReason)
pub fn set_terminal_failure_reason(&mut self, value: WebhookFailureReason)
Sets terminal_failure_reason to the provided enum value.
Trait Implementations§
Source§impl Clone for WebhookConditionStatus
impl Clone for WebhookConditionStatus
Source§fn clone(&self) -> WebhookConditionStatus
fn clone(&self) -> WebhookConditionStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebhookConditionStatus
impl Debug for WebhookConditionStatus
Source§impl Default for WebhookConditionStatus
impl Default for WebhookConditionStatus
Source§impl Message for WebhookConditionStatus
impl Message for WebhookConditionStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for WebhookConditionStatus
impl PartialEq for WebhookConditionStatus
impl StructuralPartialEq for WebhookConditionStatus
Auto Trait Implementations§
impl Freeze for WebhookConditionStatus
impl RefUnwindSafe for WebhookConditionStatus
impl Send for WebhookConditionStatus
impl Sync for WebhookConditionStatus
impl Unpin for WebhookConditionStatus
impl UnwindSafe for WebhookConditionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request