pub struct SnapshotSubscription {
pub subscription_id: SubscriptionId,
pub task_id: TaskId,
pub filter: EventFilter,
pub created_at: u64,
pub triggered_at: Option<u64>,
pub canceled_at: Option<u64>,
}Expand description
Snapshot representation of a subscription state record.
Fields§
§subscription_id: SubscriptionIdThe subscription identifier.
task_id: TaskIdThe subscribing task identifier.
filter: EventFilterThe event filter for this subscription.
created_at: u64The timestamp when the subscription was created.
triggered_at: Option<u64>The timestamp when the subscription was last triggered, if any.
canceled_at: Option<u64>The timestamp when the subscription was canceled, if any.
Trait Implementations§
Source§impl Clone for SnapshotSubscription
impl Clone for SnapshotSubscription
Source§fn clone(&self) -> SnapshotSubscription
fn clone(&self) -> SnapshotSubscription
Returns a duplicate 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 SnapshotSubscription
impl Debug for SnapshotSubscription
Source§impl<'de> Deserialize<'de> for SnapshotSubscription
impl<'de> Deserialize<'de> for SnapshotSubscription
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 SnapshotSubscription
impl PartialEq for SnapshotSubscription
Source§impl Serialize for SnapshotSubscription
impl Serialize for SnapshotSubscription
impl Eq for SnapshotSubscription
impl StructuralPartialEq for SnapshotSubscription
Auto Trait Implementations§
impl Freeze for SnapshotSubscription
impl RefUnwindSafe for SnapshotSubscription
impl Send for SnapshotSubscription
impl Sync for SnapshotSubscription
impl Unpin for SnapshotSubscription
impl UnsafeUnpin for SnapshotSubscription
impl UnwindSafe for SnapshotSubscription
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