pub struct SubscriptionEvent {
pub id: Uuid,
pub subscription_id: SubscriptionId,
pub event_type: SubscriptionEventType,
pub description: String,
pub data: Option<Value>,
pub triggered_by: Option<String>,
pub created_at: DateTime<Utc>,
}Expand description
An event in a subscription’s history
Fields§
§id: Uuid§subscription_id: SubscriptionId§event_type: SubscriptionEventType§description: StringHuman-readable description
data: Option<Value>Detailed event data
triggered_by: Option<String>Who triggered this event (customer_id, “system”, “admin”)
created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for SubscriptionEvent
impl Clone for SubscriptionEvent
Source§fn clone(&self) -> SubscriptionEvent
fn clone(&self) -> SubscriptionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscriptionEvent
impl Debug for SubscriptionEvent
Source§impl<'de> Deserialize<'de> for SubscriptionEvent
impl<'de> Deserialize<'de> for SubscriptionEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SubscriptionEvent
impl Serialize for SubscriptionEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SubscriptionEvent
impl RefUnwindSafe for SubscriptionEvent
impl Send for SubscriptionEvent
impl Sync for SubscriptionEvent
impl Unpin for SubscriptionEvent
impl UnsafeUnpin for SubscriptionEvent
impl UnwindSafe for SubscriptionEvent
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