Enum nakadion::SubscriptionDiscovery
[−]
[src]
pub enum SubscriptionDiscovery { ExistingId(SubscriptionId), Application(SubscriptionRequest), }
Describes how Nakadion
should resolve the SubscriptionId
to
connect to a subscription.
Variants
ExistingId(SubscriptionId)
Application(SubscriptionRequest)
Create a new subscription for the application and if it already exists use the existing subscription
Serialization(JSON)
The fields inside the "Application" objects are
the fields of a deserialized SubscriptionRequest
{
"Application": {
"owning_application": "test_app",
"event_types": ["event_type_1"],
"read_from": "end"
}
}
Trait Implementations
impl Debug for SubscriptionDiscovery
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for SubscriptionDiscovery
[src]
fn clone(&self) -> SubscriptionDiscovery
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more