pub struct ActiveSubscription {
pub id: String,
pub topic_url: String,
pub status: SubscriptionStatusCode,
pub channel: ChannelConfig,
pub filters: Vec<SubscriptionFilter>,
pub fhir_version: FhirVersion,
pub events_since_start: u64,
pub consecutive_failures: u32,
pub tenant_id: String,
}Expand description
An active subscription tracked by the manager.
This is a version-agnostic in-memory representation of the essential fields needed for event evaluation and notification delivery.
Fields§
§id: StringThe subscription resource ID.
topic_url: StringThe canonical URL of the SubscriptionTopic.
status: SubscriptionStatusCodeCurrent status.
channel: ChannelConfigChannel configuration.
filters: Vec<SubscriptionFilter>Parsed filter criteria.
fhir_version: FhirVersionThe FHIR version of the subscription resource.
events_since_start: u64Monotonically increasing event counter.
consecutive_failures: u32Consecutive delivery failure count (for error/off transitions).
tenant_id: StringTenant ID that owns this subscription.
Trait Implementations§
Source§impl Clone for ActiveSubscription
impl Clone for ActiveSubscription
Source§fn clone(&self) -> ActiveSubscription
fn clone(&self) -> ActiveSubscription
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 moreAuto Trait Implementations§
impl Freeze for ActiveSubscription
impl RefUnwindSafe for ActiveSubscription
impl Send for ActiveSubscription
impl Sync for ActiveSubscription
impl Unpin for ActiveSubscription
impl UnsafeUnpin for ActiveSubscription
impl UnwindSafe for ActiveSubscription
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more