Enum nakadion::SubscriptionDiscovery [] [src]

pub enum SubscriptionDiscovery {
    ExistingId(SubscriptionId),
    Application(SubscriptionRequest),
}

Describes how Nakadion should resolve the SubscriptionId to connect to a subscription.

Variants

Connect with an existing SubscriptionId

Serialization(JSON)

{ "ExistingId": "the_subscription_id" }

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]

[src]

Formats the value using the given formatter. Read more

impl Clone for SubscriptionDiscovery
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for SubscriptionDiscovery
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations