pub enum SubscriptionChange {
Create(Subscription),
Drop {
name: Identifier,
},
AlterConnection {
name: Identifier,
new_connection: String,
},
AddPublication {
name: Identifier,
publication: Identifier,
},
DropPublication {
name: Identifier,
publication: Identifier,
},
SetOptions {
name: Identifier,
options: SubscriptionOptions,
},
CommentOn {
name: Identifier,
comment: Option<String>,
},
}Expand description
A structural change to a single subscription.
Variants§
Create(Subscription)
CREATE SUBSCRIPTION ...
Drop
DROP SUBSCRIPTION ... — destructive.
Fields
§
name: IdentifierSubscription name.
AlterConnection
ALTER SUBSCRIPTION s CONNECTION '...'
Fields
§
name: IdentifierSubscription name.
AddPublication
ALTER SUBSCRIPTION s ADD PUBLICATION p
DropPublication
ALTER SUBSCRIPTION s DROP PUBLICATION p
SetOptions
ALTER SUBSCRIPTION s SET (option = value, ...) — sparse-delta.
create_slot and copy_data are NEVER included (CREATE-only PG options).
Fields
§
name: IdentifierSubscription name.
§
options: SubscriptionOptionsSparse options delta — only changed fields are Some.
CommentOn
COMMENT ON SUBSCRIPTION s IS '...'
Fields
§
name: IdentifierSubscription name.
Trait Implementations§
Source§impl Clone for SubscriptionChange
impl Clone for SubscriptionChange
Source§fn clone(&self) -> SubscriptionChange
fn clone(&self) -> SubscriptionChange
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 SubscriptionChange
impl Debug for SubscriptionChange
Source§impl<'de> Deserialize<'de> for SubscriptionChange
impl<'de> Deserialize<'de> for SubscriptionChange
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
impl Eq for SubscriptionChange
Source§impl PartialEq for SubscriptionChange
impl PartialEq for SubscriptionChange
Source§fn eq(&self, other: &SubscriptionChange) -> bool
fn eq(&self, other: &SubscriptionChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubscriptionChange
impl Serialize for SubscriptionChange
impl StructuralPartialEq for SubscriptionChange
Auto Trait Implementations§
impl Freeze for SubscriptionChange
impl RefUnwindSafe for SubscriptionChange
impl Send for SubscriptionChange
impl Sync for SubscriptionChange
impl Unpin for SubscriptionChange
impl UnsafeUnpin for SubscriptionChange
impl UnwindSafe for SubscriptionChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more