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
owning_application: String
This is the application which owns the subscription.
event_types: Vec<String>
One or more event types that should be steamed on the subscription.
read_from: Option<ReadFrom>
Defines the offset on the stream when creating a subscription.
Trait Implementations
impl Debug for SubscriptionRequest
[src]
impl Debug for SubscriptionRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SubscriptionRequest
[src]
impl Clone for SubscriptionRequest
fn clone(&self) -> SubscriptionRequest
[src]
fn clone(&self) -> SubscriptionRequest
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
Auto Trait Implementations
impl Send for SubscriptionRequest
impl Send for SubscriptionRequest
impl Sync for SubscriptionRequest
impl Sync for SubscriptionRequest