pub struct SubscriptionTestResult {
pub id: Option<String>,
pub status_code: Option<i32>,
pub payload: Option<WebhookEventType>,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
}Expand description
/// Subscription test result details.
Fields§
§id: Option<String>Read only A Square-generated unique ID for the subscription test result.
Max Length: 64
status_code: Option<i32>The status code returned by the subscription notification URL.
payload: Option<WebhookEventType>An object containing the payload of the test event.
For example, a payment.created event.
created_at: Option<DateTime>The timestamp of when the subscription was created, in RFC 3339 format.
Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
- UTC: 2020-01-26T02:25:34Z
- Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
updated_at: Option<DateTime>The timestamp of when the subscription was updated, in RFC 3339 format.
Because a subscription test result is unique, this field is the same as the created_at field.
Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
- UTC: 2020-01-26T02:25:34Z
- Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
Trait Implementations§
Source§impl Clone for SubscriptionTestResult
impl Clone for SubscriptionTestResult
Source§fn clone(&self) -> SubscriptionTestResult
fn clone(&self) -> SubscriptionTestResult
Returns a copy 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 SubscriptionTestResult
impl Debug for SubscriptionTestResult
Source§impl Default for SubscriptionTestResult
impl Default for SubscriptionTestResult
Source§fn default() -> SubscriptionTestResult
fn default() -> SubscriptionTestResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionTestResult
impl<'de> Deserialize<'de> for SubscriptionTestResult
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 SubscriptionTestResult
impl PartialEq for SubscriptionTestResult
Source§impl Serialize for SubscriptionTestResult
impl Serialize for SubscriptionTestResult
impl Eq for SubscriptionTestResult
impl StructuralPartialEq for SubscriptionTestResult
Auto Trait Implementations§
impl Freeze for SubscriptionTestResult
impl RefUnwindSafe for SubscriptionTestResult
impl Send for SubscriptionTestResult
impl Sync for SubscriptionTestResult
impl Unpin for SubscriptionTestResult
impl UnwindSafe for SubscriptionTestResult
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