Struct lexoffice::model::event_subscriptions::EventSubscription [−][src]
{
"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]
fn clone(&self) -> EventSubscription
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EventSubscription
[src]
impl<'de> Deserialize<'de> for EventSubscription
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HasId for EventSubscription
[src]
impl PartialEq<EventSubscription> for EventSubscription
[src]
fn eq(&self, other: &EventSubscription) -> bool
[src]
fn ne(&self, other: &EventSubscription) -> bool
[src]
impl Serialize for EventSubscription
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for EventSubscription
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventSubscription
impl Send for EventSubscription
impl Sync for EventSubscription
impl Unpin for EventSubscription
impl UnwindSafe for EventSubscription
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,