[][src]Struct nakadi_types::subscription::SubscriptionInputBuilder

pub struct SubscriptionInputBuilder {
    pub id: Option<SubscriptionId>,
    pub owning_application: Option<OwningApplication>,
    pub event_types: Option<EventTypeNames>,
    pub consumer_group: Option<ConsumerGroup>,
    pub read_from: Option<ReadFrom>,
    pub initial_cursors: Option<Vec<EventTypeCursor>>,
    pub authorization: Option<SubscriptionAuthorization>,
}

A builder for creating a SubscriptionInput

Subscription

Subscription is a high level consumption unit.

Subscriptions allow applications to easily scale the number of clients by managing consumed event offsets and distributing load between instances. The key properties that identify subscription are ‘owning_application’, ‘event_types’ and ‘consumer_group’. It’s not possible to have two different subscriptions with these properties being the same.

See also Nakadi Manual

Fields

id: Option<SubscriptionId>owning_application: Option<OwningApplication>event_types: Option<EventTypeNames>consumer_group: Option<ConsumerGroup>read_from: Option<ReadFrom>initial_cursors: Option<Vec<EventTypeCursor>>authorization: Option<SubscriptionAuthorization>

Implementations

impl SubscriptionInputBuilder[src]

pub fn id<T: Into<SubscriptionId>>(self, id: T) -> Self[src]

pub fn owning_application<T: Into<OwningApplication>>(
    self,
    owning_application: T
) -> Self
[src]

pub fn event_types<T: Into<EventTypeNames>>(self, event_types: T) -> Self[src]

pub fn consumer_group<T: Into<ConsumerGroup>>(self, consumer_group: T) -> Self[src]

pub fn read_from(self, read_from: ReadFrom) -> Self[src]

pub fn initial_cursors(self, initial_cursors: Vec<EventTypeCursor>) -> Self[src]

pub fn authorization<T: Into<SubscriptionAuthorization>>(
    self,
    authorization: T
) -> Self
[src]

pub fn finish_for_create(self) -> Result<SubscriptionInput, Error>[src]

pub fn finish_for_update(self) -> Result<SubscriptionInput, Error>[src]

Trait Implementations

impl Clone for SubscriptionInputBuilder[src]

impl Debug for SubscriptionInputBuilder[src]

impl Default for SubscriptionInputBuilder[src]

impl<'de> Deserialize<'de> for SubscriptionInputBuilder[src]

impl Serialize for SubscriptionInputBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,