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>,
}Fields§
§condition: Option<WebhookSuccessCondition>§delivery_attempts: i32§last_attempt_time: Option<Timestamp>§next_retry_time: Option<Timestamp>§last_delivery_id: Option<String>§last_http_status: Option<i32>§last_error_message: Option<String>§started_at: Option<Timestamp>§terminal_failure_reason: Option<i32>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
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 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
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for WebhookConditionStatus
impl PartialEq for WebhookConditionStatus
Source§fn eq(&self, other: &WebhookConditionStatus) -> bool
fn eq(&self, other: &WebhookConditionStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request