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

pub struct EventSubscription {
    pub subscription_id: ReadOnly<Uuid>,
    pub organization_id: ReadOnly<Uuid>,
    pub created_date: ReadOnly<DateTime>,
    pub event_type: EventType,
    pub callback_url: String,
}
{
  "subscriptionId": "4d43ad14-671d-4e0c-fd4b-2fd8cc117eff",
  "organizationId": "aa93e8a8-2aa3-470b-b914-caad8a255dd8",
  "createdDate": "2018-04-11T12:15:00.000+02:00",
  "eventType": "contact.changed",
  "callbackUrl": "https://example.org/webhook"
}

Fields

subscription_id: ReadOnly<Uuid>

Unique id of the event subscription generated on creation by lexoffice.
Read-only.

organization_id: ReadOnly<Uuid>

Unique id of the organization the event subscription belongs to.
Read-only.

created_date: ReadOnly<DateTime>

The instant of time when the event subscription was created by lexoffice 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.

event_type: EventType

The event type is a combined key which defines the resource and its event name you are subscribing to. All available events receivable via the API can be taken from the table Event Types.

callback_url: String

When a resource entity triggers an event, the callback url is used to notify the subscriber about it. The payload of the callback is described in Webhook Callback Properties.

Implementations

impl EventSubscription[src]

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

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

Trait Implementations

impl Clone for EventSubscription[src]

impl Debug for EventSubscription[src]

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

impl HasId for EventSubscription[src]

impl PartialEq<EventSubscription> for EventSubscription[src]

impl Serialize for EventSubscription[src]

impl StructuralPartialEq for EventSubscription[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.