Struct nakadion::api::SubscriptionRequest[][src]

pub struct SubscriptionRequest {
    pub owning_application: String,
    pub event_types: Vec<String>,
    pub read_from: Option<ReadFrom>,
}

A request describing the subscription to be created.

The fields are described in more detail in the Nakadi Documentation

Serialization(JSON)

{
    "owning_application": "my_app",
    "event_types": ["my_event_type"],
    "read_from": "begin"
}

Fields

This is the application which owns the subscription.

One or more event types that should be steamed on the subscription.

Defines the offset on the stream when creating a subscription.

Trait Implementations

impl Debug for SubscriptionRequest
[src]

Formats the value using the given formatter. Read more

impl Clone for SubscriptionRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations