pub struct Notification {
pub id: Uuid,
pub created_at: String,
pub updated_at: String,
pub status: NotificationStatus,
pub event_type: WebhookEvent,
pub event_version: f64,
pub resource_id: Option<Option<Uuid>>,
pub attempts: Option<Vec<String>>,
}
Fields§
§id: Uuid
The id of the Notification
created_at: String
The creation date of the notification
updated_at: String
The date when the notification was updated
status: NotificationStatus
§event_type: WebhookEvent
§event_version: f64
The event version of the Notification
resource_id: Option<Option<Uuid>>
The resource id of the event which the Notification is listen to
attempts: Option<Vec<String>>
The attempts related to Notification
Implementations§
Source§impl Notification
impl Notification
pub fn new( id: Uuid, created_at: String, updated_at: String, status: NotificationStatus, event_type: WebhookEvent, event_version: f64, ) -> Notification
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 Notification
impl Debug for Notification
Source§impl Default for Notification
impl Default for Notification
Source§fn default() -> Notification
fn default() -> Notification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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 Notification
impl PartialEq for Notification
Source§impl Serialize for Notification
impl Serialize for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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