Struct lexoffice::model::event_subscriptions::WebhookCallback[][src]

pub struct WebhookCallback {
    pub organization_id: Uuid,
    pub event_type: EventType,
    pub resource_id: Uuid,
    pub event_date: ReadOnly<DateTime>,
}
{
  "organizationId": "aa93e8a8-2aa3-470b-b914-caad8a255dd8",
  "eventType": "contact.changed",
  "resourceId": "4d43ad14-671d-4e0c-fd4b-2fd8cc117eff",
  "eventDate": "2018-04-11T12:30:00.000+02:00"
}

Subscribed events will send a POST request to your given webhook url and contain the following JSON payload.

Fields

organization_id: Uuid

The organization for which an event has been triggered.

event_type: EventType

Describes the occurred event. The eventType describes the resource and the event name.

resource_id: Uuid

The resource entity on which the event has occurred. Use the corresponding resource endpoint and the resourceId to get the latest data of the resource entity.

event_date: ReadOnly<DateTime>

The instant of time when the event was triggered in format yyyy-MM-ddTHH:mm:ss.SSSXXX as described in RFC 3339/ISO 8601 (e.g. 2020-02-21T00:00:00.000+01:00).
Read-only.

Implementations

impl WebhookCallback[src]

pub fn builder() -> WebhookCallbackBuilder<((), (), ())>[src]

Create a builder for building WebhookCallback. On the builder, call .organization_id(...), .event_type(...), .resource_id(...) to set the values of the fields. Finally, call .build() to create the instance of WebhookCallback.

Trait Implementations

impl Clone for WebhookCallback[src]

impl Debug for WebhookCallback[src]

impl<'de> Deserialize<'de> for WebhookCallback[src]

impl PartialEq<WebhookCallback> for WebhookCallback[src]

impl Serialize for WebhookCallback[src]

impl StructuralPartialEq for WebhookCallback[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,