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