pub struct StreamNotificationsParams {
pub token: Option<String>,
pub last_event_id: Option<String>,
}Expand description
Query and header parameters for streamNotifications.
Fields§
§token: Option<String>Short-lived SSE/WebSocket token (mint via POST /api/v1/auth/sse-tokens) or full API key.
Used by browser EventSource which cannot set Authorization header.
last_event_id: Option<String>SSE resumption cursor. The browser’s EventSource sets this automatically on reconnect; servers replay events strictly after this id.
Trait Implementations§
Source§impl Clone for StreamNotificationsParams
impl Clone for StreamNotificationsParams
Source§fn clone(&self) -> StreamNotificationsParams
fn clone(&self) -> StreamNotificationsParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamNotificationsParams
impl Debug for StreamNotificationsParams
Source§impl Default for StreamNotificationsParams
impl Default for StreamNotificationsParams
Source§fn default() -> StreamNotificationsParams
fn default() -> StreamNotificationsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamNotificationsParams
impl<'de> Deserialize<'de> for StreamNotificationsParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for StreamNotificationsParams
Auto Trait Implementations§
impl Freeze for StreamNotificationsParams
impl RefUnwindSafe for StreamNotificationsParams
impl Send for StreamNotificationsParams
impl Sync for StreamNotificationsParams
impl Unpin for StreamNotificationsParams
impl UnsafeUnpin for StreamNotificationsParams
impl UnwindSafe for StreamNotificationsParams
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