pub struct WebhookTestDeliveryResult {
pub success: Option<bool>,
pub status_code: Option<i64>,
pub response_time_ms: Option<i64>,
pub endpoint_url: Option<String>,
pub message: Option<String>,
pub error: Option<String>,
pub response_body: Option<String>,
pub test_payload: Option<Value>,
pub extra: HashMap<String, Value>,
}Expand description
Response from
Client::test_webhook_endpoint.
Fields§
§success: Option<bool>Whether the test POST succeeded.
status_code: Option<i64>HTTP status code returned by the destination.
response_time_ms: Option<i64>Response time of the destination, in milliseconds.
endpoint_url: Option<String>Echoed destination URL.
message: Option<String>Human-readable message.
error: Option<String>Error message, when success is false.
response_body: Option<String>Response body returned by the destination.
test_payload: Option<Value>The synthetic body the server delivered.
extra: HashMap<String, Value>Forward-compatible bucket.
Trait Implementations§
Source§impl Clone for WebhookTestDeliveryResult
impl Clone for WebhookTestDeliveryResult
Source§fn clone(&self) -> WebhookTestDeliveryResult
fn clone(&self) -> WebhookTestDeliveryResult
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 WebhookTestDeliveryResult
impl Debug for WebhookTestDeliveryResult
Source§impl Default for WebhookTestDeliveryResult
impl Default for WebhookTestDeliveryResult
Source§fn default() -> WebhookTestDeliveryResult
fn default() -> WebhookTestDeliveryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookTestDeliveryResult
impl<'de> Deserialize<'de> for WebhookTestDeliveryResult
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 PartialEq for WebhookTestDeliveryResult
impl PartialEq for WebhookTestDeliveryResult
Source§fn eq(&self, other: &WebhookTestDeliveryResult) -> bool
fn eq(&self, other: &WebhookTestDeliveryResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebhookTestDeliveryResult
Auto Trait Implementations§
impl Freeze for WebhookTestDeliveryResult
impl RefUnwindSafe for WebhookTestDeliveryResult
impl Send for WebhookTestDeliveryResult
impl Sync for WebhookTestDeliveryResult
impl Unpin for WebhookTestDeliveryResult
impl UnsafeUnpin for WebhookTestDeliveryResult
impl UnwindSafe for WebhookTestDeliveryResult
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