pub struct WsParams {
pub subject: Option<String>,
pub since: Option<u64>,
}Fields§
§subject: Option<String>Optional NATS subject filter. Defaults to cellos.events.> which
receives every CloudEvent the platform emits. Callers can scope
to a tenant with e.g. ?subject=cellos.events.tenant1.>.
since: Option<u64>ADR-0015 §D3 — resume cursor. When present the server starts
delivery at since + 1. With the core-NATS MVP bridge this is
accepted but historical replay is unavailable; the contract
(every frame carries seq) is preserved either way so clients
don’t branch on the bridge implementation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsParams
impl<'de> Deserialize<'de> for WsParams
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
Auto Trait Implementations§
impl Freeze for WsParams
impl RefUnwindSafe for WsParams
impl Send for WsParams
impl Sync for WsParams
impl Unpin for WsParams
impl UnsafeUnpin for WsParams
impl UnwindSafe for WsParams
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