pub struct SubscriptionsListenParams {
pub notifications: Option<SubscriptionFilter>,
pub meta: Option<Value>,
}Expand description
Parameters for the subscriptions/listen RPC (SEP-2575 / SEP-2567).
subscriptions/listen is sent by the client over HTTP POST to open a
server-to-client notification stream (SSE). The server responds with
Content-Type: text/event-stream and streams zero or more
notifications/* events until the client disconnects.
Under SEP-2567 (sessionless), the stream lifetime is scoped to the single
request. Only servers whose negotiated protocol version is >= 2026-07-28
enable this path; older servers return a Method Not Found (-32601) error.
The struct takes no parameters today; the empty struct is reserved so future SEPs can add optional fields without breaking callers.
Fields§
§notifications: Option<SubscriptionFilter>SEP-2575: the notification types the client opts in to on this stream. The draft schema requires this field; it is optional here so existing callers keep compiling, and the transport enforces presence on the 2026-07-28 path (#952).
meta: Option<Value>Optional protocol-level metadata.
Trait Implementations§
Source§impl Clone for SubscriptionsListenParams
impl Clone for SubscriptionsListenParams
Source§fn clone(&self) -> SubscriptionsListenParams
fn clone(&self) -> SubscriptionsListenParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more