pub struct SubscriptionConfig {
pub table: Option<String>,
pub schema: String,
pub event: Option<RealtimeEvent>,
pub filter: Option<String>,
}
Expand description
Configuration for subscriptions
§Examples
use supabase::realtime::{SubscriptionConfig, RealtimeEvent};
let config = SubscriptionConfig {
table: Some("posts".to_string()),
schema: "public".to_string(),
event: Some(RealtimeEvent::Insert),
filter: Some("author_id=eq.123".to_string()),
};
Fields§
§table: Option<String>
§schema: String
§event: Option<RealtimeEvent>
§filter: Option<String>
Trait Implementations§
Source§impl Clone for SubscriptionConfig
impl Clone for SubscriptionConfig
Source§fn clone(&self) -> SubscriptionConfig
fn clone(&self) -> SubscriptionConfig
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 moreSource§impl Debug for SubscriptionConfig
impl Debug for SubscriptionConfig
Auto Trait Implementations§
impl Freeze for SubscriptionConfig
impl RefUnwindSafe for SubscriptionConfig
impl Send for SubscriptionConfig
impl Sync for SubscriptionConfig
impl Unpin for SubscriptionConfig
impl UnwindSafe for SubscriptionConfig
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