pub struct SubscriptionOptions {
pub path: Box<str>,
pub filter: Option<QueryFilter>,
}Expand description
Options for subscribing to real-time changes.
Fields§
§path: Box<str>Path to subscribe to (e.g., “posts”, “posts/abc123/comments”)
filter: Option<QueryFilter>Optional filter (only matching changes are sent)
Implementations§
Trait Implementations§
Source§impl Clone for SubscriptionOptions
impl Clone for SubscriptionOptions
Source§fn clone(&self) -> SubscriptionOptions
fn clone(&self) -> SubscriptionOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubscriptionOptions
impl RefUnwindSafe for SubscriptionOptions
impl Send for SubscriptionOptions
impl Sync for SubscriptionOptions
impl Unpin for SubscriptionOptions
impl UnsafeUnpin for SubscriptionOptions
impl UnwindSafe for SubscriptionOptions
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