#[non_exhaustive]pub struct WebSocketPushEnable {
pub data_types: Option<Vec<String>>,
pub push_state: Option<String>,
pub extra: Map<String, Value>,
}Expand description
Turns on push notifications for the connection (RFC 8887 §4.3.5.2).
dataTypes is String[]|null and always written; null asks for
every supported data type. A missing dataTypes reads as null.
Sending it again replaces the earlier subscription.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_types: Option<Vec<String>>dataTypes: the data type names whose changes the client wants;
“Other types are omitted from the TypeState object.” None is
every type.
push_state: Option<String>pushState: the last token the client got; “the server SHOULD
immediately send all changes since that state token”.
extra: Map<String, Value>Vendor, site and future-spec members.
Implementations§
Trait Implementations§
Source§impl Clone for WebSocketPushEnable
impl Clone for WebSocketPushEnable
Source§impl Debug for WebSocketPushEnable
impl Debug for WebSocketPushEnable
Source§impl Default for WebSocketPushEnable
impl Default for WebSocketPushEnable
Source§impl<'de> Deserialize<'de> for WebSocketPushEnable
impl<'de> Deserialize<'de> for WebSocketPushEnable
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WebSocketPushEnable
Source§impl PartialEq for WebSocketPushEnable
impl PartialEq for WebSocketPushEnable
Source§impl Serialize for WebSocketPushEnable
impl Serialize for WebSocketPushEnable
impl StructuralPartialEq for WebSocketPushEnable
Auto Trait Implementations§
impl Forget for WebSocketPushEnable
impl Freeze for WebSocketPushEnable
impl Move for WebSocketPushEnable
impl RefUnwindSafe for WebSocketPushEnable
impl Send for WebSocketPushEnable
impl Sync for WebSocketPushEnable
impl Unpin for WebSocketPushEnable
impl UnsafeUnpin for WebSocketPushEnable
impl UnwindSafe for WebSocketPushEnable
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