pub struct WebhookEventResponseDetail {
pub body: Option<String>,
pub elapsed_time_ms: Option<i64>,
pub error_name: Option<String>,
pub http_code: Option<i64>,
}Expand description
Details of the HTTP response received from the webhook target.
JSON schema
{
"description": "Details of the HTTP response received from the webhook target.",
"examples": [
{
"body": "ok",
"elapsedTimeMs": 142,
"httpCode": 200
}
],
"type": "object",
"properties": {
"body": {
"description": "Response body returned by the webhook target.",
"examples": [
"ok"
],
"type": "string"
},
"elapsedTimeMs": {
"description": "Round-trip time of the webhook delivery in milliseconds.",
"examples": [
142
],
"type": "integer"
},
"errorName": {
"description": "Error name if the delivery failed (e.g., timeout, connection_refused).",
"examples": [
"timeout"
],
"type": "string"
},
"httpCode": {
"description": "HTTP status code returned by the webhook target.",
"examples": [
200
],
"type": "integer"
}
}
}Fields§
§body: Option<String>Response body returned by the webhook target.
elapsed_time_ms: Option<i64>Round-trip time of the webhook delivery in milliseconds.
error_name: Option<String>Error name if the delivery failed (e.g., timeout, connection_refused).
http_code: Option<i64>HTTP status code returned by the webhook target.
Implementations§
Source§impl WebhookEventResponseDetail
impl WebhookEventResponseDetail
pub fn builder() -> WebhookEventResponseDetail
Trait Implementations§
Source§impl Clone for WebhookEventResponseDetail
impl Clone for WebhookEventResponseDetail
Source§fn clone(&self) -> WebhookEventResponseDetail
fn clone(&self) -> WebhookEventResponseDetail
Returns a duplicate of the value. Read more
1.0.0 · 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 WebhookEventResponseDetail
impl Debug for WebhookEventResponseDetail
Source§impl Default for WebhookEventResponseDetail
impl Default for WebhookEventResponseDetail
Source§impl<'de> Deserialize<'de> for WebhookEventResponseDetail
impl<'de> Deserialize<'de> for WebhookEventResponseDetail
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
Source§impl From<&WebhookEventResponseDetail> for WebhookEventResponseDetail
impl From<&WebhookEventResponseDetail> for WebhookEventResponseDetail
Source§fn from(value: &WebhookEventResponseDetail) -> Self
fn from(value: &WebhookEventResponseDetail) -> Self
Converts to this type from the input type.
Source§impl From<WebhookEventResponseDetail> for WebhookEventResponseDetail
impl From<WebhookEventResponseDetail> for WebhookEventResponseDetail
Source§fn from(value: WebhookEventResponseDetail) -> Self
fn from(value: WebhookEventResponseDetail) -> Self
Converts to this type from the input type.
Source§impl TryFrom<WebhookEventResponseDetail> for WebhookEventResponseDetail
impl TryFrom<WebhookEventResponseDetail> for WebhookEventResponseDetail
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WebhookEventResponseDetail) -> Result<Self, ConversionError>
fn try_from(value: WebhookEventResponseDetail) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WebhookEventResponseDetail
impl RefUnwindSafe for WebhookEventResponseDetail
impl Send for WebhookEventResponseDetail
impl Sync for WebhookEventResponseDetail
impl Unpin for WebhookEventResponseDetail
impl UnsafeUnpin for WebhookEventResponseDetail
impl UnwindSafe for WebhookEventResponseDetail
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