pub struct SubscribeWithEventOptions {
pub project: Option<String>,
pub reconnect: bool,
pub max_attempts: u32,
}Expand description
Optional parameters for StreamsResource::subscribe_with_event.
Fields§
§project: Option<String>Scopes the subscription to a project id or slug.
reconnect: boolAutomatically resubscribe across the API’s 5-minute SSE timeout.
max_attempts: u32Caps reconnection attempts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubscribeWithEventOptions
impl RefUnwindSafe for SubscribeWithEventOptions
impl Send for SubscribeWithEventOptions
impl Sync for SubscribeWithEventOptions
impl Unpin for SubscribeWithEventOptions
impl UnsafeUnpin for SubscribeWithEventOptions
impl UnwindSafe for SubscribeWithEventOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more