pub struct CreatePublication {
pub name: Ident,
pub target: Option<PublicationTarget>,
pub with_options: Vec<SqlOption>,
}Expand description
A CREATE PUBLICATION statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-createpublication.html
Fields§
§name: IdentThe publication name.
target: Option<PublicationTarget>Optional target specification (FOR ALL TABLES, FOR TABLE ..., or FOR TABLES IN SCHEMA ...).
with_options: Vec<SqlOption>Optional WITH (key = value, ...) clause.
Trait Implementations§
Source§impl Clone for CreatePublication
impl Clone for CreatePublication
Source§fn clone(&self) -> CreatePublication
fn clone(&self) -> CreatePublication
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 CreatePublication
impl Debug for CreatePublication
Source§impl<'de> Deserialize<'de> for CreatePublication
impl<'de> Deserialize<'de> for CreatePublication
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 CreatePublication
impl Display for CreatePublication
Source§impl From<CreatePublication> for Statement
impl From<CreatePublication> for Statement
Source§fn from(v: CreatePublication) -> Self
fn from(v: CreatePublication) -> Self
Converts to this type from the input type.
Source§impl Hash for CreatePublication
impl Hash for CreatePublication
Source§impl Ord for CreatePublication
impl Ord for CreatePublication
Source§fn cmp(&self, other: &CreatePublication) -> Ordering
fn cmp(&self, other: &CreatePublication) -> 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 CreatePublication
impl PartialEq for CreatePublication
Source§impl PartialOrd for CreatePublication
impl PartialOrd for CreatePublication
Source§impl Serialize for CreatePublication
impl Serialize for CreatePublication
Source§impl Visit for CreatePublication
impl Visit for CreatePublication
Source§impl VisitMut for CreatePublication
impl VisitMut for CreatePublication
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 CreatePublication
impl StructuralPartialEq for CreatePublication
Auto Trait Implementations§
impl Freeze for CreatePublication
impl RefUnwindSafe for CreatePublication
impl Send for CreatePublication
impl Sync for CreatePublication
impl Unpin for CreatePublication
impl UnsafeUnpin for CreatePublication
impl UnwindSafe for CreatePublication
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