pub struct CreateSubscriptionStatement {
pub name: String,
pub conn_str: String,
pub publications: Vec<String>,
}Expand description
v6.1.4 — CREATE SUBSCRIPTION AST node. v6.1.4 ships a
single fixed-shape DDL; the WITH-clause options PG supports
(enabled, slot_name, streaming, binary) are out of
scope for v6.1.4 — enabled defaults to true and there are
no other knobs to set in v6.1.x.
Fields§
§name: String§conn_str: StringConnection string in PG keyword=value form (e.g.
host=127.0.0.1 port=20002). v6.1.4 only consumes the
host and port fields; the rest is reserved for
future v6.1.x options.
publications: Vec<String>One or more publications on the remote side. Order is preserved verbatim from the DDL; the worker requests them in this order. v6.1.4 records the list; v6.1.5 publisher-side filtering enforces it.
Trait Implementations§
Source§impl Clone for CreateSubscriptionStatement
impl Clone for CreateSubscriptionStatement
Source§fn clone(&self) -> CreateSubscriptionStatement
fn clone(&self) -> CreateSubscriptionStatement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateSubscriptionStatement
impl Debug for CreateSubscriptionStatement
impl Eq for CreateSubscriptionStatement
Source§impl PartialEq for CreateSubscriptionStatement
impl PartialEq for CreateSubscriptionStatement
Source§fn eq(&self, other: &CreateSubscriptionStatement) -> bool
fn eq(&self, other: &CreateSubscriptionStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateSubscriptionStatement
Auto Trait Implementations§
impl Freeze for CreateSubscriptionStatement
impl RefUnwindSafe for CreateSubscriptionStatement
impl Send for CreateSubscriptionStatement
impl Sync for CreateSubscriptionStatement
impl Unpin for CreateSubscriptionStatement
impl UnsafeUnpin for CreateSubscriptionStatement
impl UnwindSafe for CreateSubscriptionStatement
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