[][src]Struct nakadion::api::ApiClient

pub struct ApiClient { /* fields omitted */ }

A client to connect to the API of Nakadi.

The actual HTTP client is pluggable via the DispatchHttpRequest trait.

The ApiClient does not do any retry or timeout management.

Methods

impl ApiClient[src]

pub fn builder() -> Builder[src]

pub fn new<D, P>(
    nakadi_base_url: NakadiBaseUrl,
    dispatch_http_request: D,
    access_token_provider: P
) -> Self where
    D: DispatchHttpRequest + Send + Sync + 'static,
    P: ProvidesAccessToken + Send + Sync + 'static, 
[src]

Trait Implementations

impl Clone for ApiClient[src]

impl Debug for ApiClient[src]

impl MonitoringApi for ApiClient[src]

impl PublishApi for ApiClient[src]

impl SchemaRegistryApi for ApiClient[src]

fn list_event_types<T: Into<FlowId>>(
    &self,
    flow_id: T
) -> ApiFuture<Vec<EventType>>
[src]

Returns a list of all registered EventTypes

See also Nakadi Manual

fn create_event_type<T: Into<FlowId>>(
    &self,
    event_type: &EventTypeInput,
    flow_id: T
) -> ApiFuture<()>
[src]

Creates a new EventType.

See also Nakadi Manual

fn get_event_type<T: Into<FlowId>>(
    &self,
    name: &EventTypeName,
    flow_id: T
) -> ApiFuture<EventType>
[src]

Returns the EventType identified by its name.

See also Nakadi Manual

fn update_event_type<T: Into<FlowId>>(
    &self,
    name: &EventTypeName,
    event_type: &EventType,
    flow_id: T
) -> ApiFuture<()>
[src]

Updates the EventType identified by its name.

See also Nakadi Manual

fn delete_event_type<T: Into<FlowId>>(
    &self,
    name: &EventTypeName,
    flow_id: T
) -> ApiFuture<()>
[src]

Deletes an EventType identified by its name.

See also Nakadi Manual

impl SubscriptionApi for ApiClient[src]

fn create_subscription<T: Into<FlowId>>(
    &self,
    input: &SubscriptionInput,
    flow_id: T
) -> ApiFuture<Subscription>
[src]

This endpoint creates a subscription for EventTypes.

See also Nakadi Manual

fn get_subscription<T: Into<FlowId>>(
    &self,
    id: SubscriptionId,
    flow_id: T
) -> ApiFuture<Subscription>
[src]

Returns a subscription identified by id.

See also Nakadi Manual

fn update_auth<T: Into<FlowId>>(
    &self,
    input: &SubscriptionInput,
    flow_id: T
) -> ApiFuture<()>
[src]

This endpoint only allows to update the authorization section of a subscription.

All other properties are immutable. This operation is restricted to subjects with administrative role. This call captures the timestamp of the update request.

See also Nakadi Manual

fn delete_subscription<T: Into<FlowId>>(
    &self,
    id: SubscriptionId,
    flow_id: T
) -> ApiFuture<()>
[src]

Deletes a subscription.

See also Nakadi Manual

fn get_subscription_cursors<T: Into<FlowId>>(
    &self,
    id: SubscriptionId,
    flow_id: T
) -> ApiFuture<Vec<SubscriptionCursor>>
[src]

Exposes the currently committed offsets of a subscription.

See also Nakadi Manual

fn reset_subscription_cursors<T: Into<FlowId>>(
    &self,
    id: SubscriptionId,
    cursors: &[SubscriptionCursorWithoutToken],
    flow_id: T
) -> ApiFuture<()>
[src]

Reset subscription offsets to specified values.

See also Nakadi Manual

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> From<T> for T[src]

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

impl<T> ProvidesCommitter for T where
    T: SubscriptionApi + Sync + Send + 'static + Clone
[src]

impl<T> ProvidesConnector for T where
    T: SubscriptionApi + Sync + Send + 'static + Clone
[src]

impl<T> StreamingEssentials for T where
    T: ProvidesConnector + ProvidesCommitter + Send + Sync + 'static, 
[src]

impl<S> SubscriptionApiExt for S where
    S: SubscriptionApi + Send + Sync + 'static, 
[src]

fn reset_cursors_to_begin<T>(
    &Self,
    SubscriptionId,
    T
) -> Pin<Box<dyn Future<Output = Result<(), NakadiApiError>> + Send>> where
    T: Into<FlowId>, 
[src]

Resets all cursors of the given subscription to CursorOffset::Begin

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>,