pub struct CreateSubscription {
pub name: Ident,
pub connection: Value,
pub publications: Vec<Ident>,
pub with_options: Vec<SqlOption>,
}Expand description
A CREATE SUBSCRIPTION statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-createsubscription.html
Fields§
§name: IdentThe subscription name.
connection: ValueThe CONNECTION 'conninfo' string.
publications: Vec<Ident>The PUBLICATION publication_name [, ...] list.
with_options: Vec<SqlOption>Optional WITH (key = value, ...) clause.
Trait Implementations§
Source§impl Clone for CreateSubscription
impl Clone for CreateSubscription
Source§fn clone(&self) -> CreateSubscription
fn clone(&self) -> CreateSubscription
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 CreateSubscription
impl Debug for CreateSubscription
Source§impl<'de> Deserialize<'de> for CreateSubscription
impl<'de> Deserialize<'de> for CreateSubscription
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
Source§impl Display for CreateSubscription
impl Display for CreateSubscription
Source§impl From<CreateSubscription> for Statement
impl From<CreateSubscription> for Statement
Source§fn from(v: CreateSubscription) -> Self
fn from(v: CreateSubscription) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateSubscription
impl Hash for CreateSubscription
Source§impl Ord for CreateSubscription
impl Ord for CreateSubscription
Source§fn cmp(&self, other: &CreateSubscription) -> Ordering
fn cmp(&self, other: &CreateSubscription) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CreateSubscription
impl PartialEq for CreateSubscription
Source§impl PartialOrd for CreateSubscription
impl PartialOrd for CreateSubscription
Source§impl Serialize for CreateSubscription
impl Serialize for CreateSubscription
Source§impl Visit for CreateSubscription
impl Visit for CreateSubscription
Source§impl VisitMut for CreateSubscription
impl VisitMut for CreateSubscription
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for CreateSubscription
impl StructuralPartialEq for CreateSubscription
Auto Trait Implementations§
impl Freeze for CreateSubscription
impl RefUnwindSafe for CreateSubscription
impl Send for CreateSubscription
impl Sync for CreateSubscription
impl Unpin for CreateSubscription
impl UnsafeUnpin for CreateSubscription
impl UnwindSafe for CreateSubscription
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