Struct nakadion::api::NakadiApiClient [−][src]
pub struct NakadiApiClient { /* fields omitted */ }
A REST client for the Nakadi API.
This accesses the REST API only and does not provide functionality for streaming.
Methods
impl NakadiApiClient
[src]
impl NakadiApiClient
pub fn new<T: ProvidesAccessToken + Send + Sync + 'static>(
config: Config,
token_provider: T
) -> Result<NakadiApiClient, Error>
[src]
pub fn new<T: ProvidesAccessToken + Send + Sync + 'static>(
config: Config,
token_provider: T
) -> Result<NakadiApiClient, Error>
Build a new client with an owned access token provider.
Errors
Fails if no HTTP client could be created.
Build a new client with a shared access token provider.
Errors
Fails if no HTTP client could be created.
Trait Implementations
impl Clone for NakadiApiClient
[src]
impl Clone for NakadiApiClient
fn clone(&self) -> NakadiApiClient
[src]
fn clone(&self) -> NakadiApiClient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl ApiClient for NakadiApiClient
[src]
impl ApiClient for NakadiApiClient
fn commit_cursors_budgeted<T: AsRef<[u8]>>(
&self,
subscription_id: &SubscriptionId,
stream_id: &StreamId,
cursors: &[T],
flow_id: FlowId,
budget: Duration
) -> Result<CommitStatus, CommitError>
[src]
fn commit_cursors_budgeted<T: AsRef<[u8]>>(
&self,
subscription_id: &SubscriptionId,
stream_id: &StreamId,
cursors: &[T],
flow_id: FlowId,
budget: Duration
) -> Result<CommitStatus, CommitError>
Commit the cursors encoded in the given bytes. Read more
fn delete_event_type(
&self,
event_type_name: &str
) -> Result<(), DeleteEventTypeError>
[src]
fn delete_event_type(
&self,
event_type_name: &str
) -> Result<(), DeleteEventTypeError>
Deletes an event type. Read more
fn create_event_type(
&self,
event_type: &EventTypeDefinition
) -> Result<(), CreateEventTypeError>
[src]
fn create_event_type(
&self,
event_type: &EventTypeDefinition
) -> Result<(), CreateEventTypeError>
Creates an event type defined by EventTypeDefinition
. Read more
fn create_subscription(
&self,
request: &SubscriptionRequest
) -> Result<CreateSubscriptionStatus, CreateSubscriptionError>
[src]
fn create_subscription(
&self,
request: &SubscriptionRequest
) -> Result<CreateSubscriptionStatus, CreateSubscriptionError>
Creates an new subscription defined by a SubscriptionRequest
. Read more
fn delete_subscription(
&self,
id: &SubscriptionId
) -> Result<(), DeleteSubscriptionError>
[src]
fn delete_subscription(
&self,
id: &SubscriptionId
) -> Result<(), DeleteSubscriptionError>
Deletes a Subscription
identified by a SubscriptionId
. Read more
fn commit_cursors<T: AsRef<[u8]>>(
&self,
subscription_id: &SubscriptionId,
stream_id: &StreamId,
cursors: &[T],
flow_id: FlowId
) -> Result<CommitStatus, CommitError>
[src]
fn commit_cursors<T: AsRef<[u8]>>(
&self,
subscription_id: &SubscriptionId,
stream_id: &StreamId,
cursors: &[T],
flow_id: FlowId
) -> Result<CommitStatus, CommitError>
Commit the cursors encoded in the given bytes. Read more
Auto Trait Implementations
impl Send for NakadiApiClient
impl Send for NakadiApiClient
impl Sync for NakadiApiClient
impl Sync for NakadiApiClient