pub enum TsDictionaryChange {
Create(TsDictionary),
Replace {
from: TsDictionary,
to: TsDictionary,
},
Drop {
qname: QualifiedName,
},
AlterOptions {
qname: QualifiedName,
options: Vec<(String, String)>,
},
AlterOwner {
qname: QualifiedName,
owner: Identifier,
},
CommentOn {
qname: QualifiedName,
comment: Option<String>,
},
}Expand description
A structural change to a single text-search dictionary.
Identity = qname. No structural field requires CASCADE or prevents
in-place alteration; all changes are Destructiveness::Safe.
Variants§
Create(TsDictionary)
CREATE TEXT SEARCH DICTIONARY …
Replace
DROP TEXT SEARCH DICTIONARY old; CREATE TEXT SEARCH DICTIONARY new;
Emitted when the template field changes (no in-place ALTER for
template changes in PG).
Fields
§
from: TsDictionaryAs it exists in the target (live).
§
to: TsDictionaryAs it should exist in the source.
Drop
DROP TEXT SEARCH DICTIONARY name;
Fields
§
qname: QualifiedNameDictionary name.
AlterOptions
ALTER TEXT SEARCH DICTIONARY name (option = value, …);
Emitted when only the options field changes (template is unchanged).
Fields
§
qname: QualifiedNameDictionary name.
AlterOwner
ALTER TEXT SEARCH DICTIONARY name OWNER TO owner;
CommentOn
COMMENT ON TEXT SEARCH DICTIONARY name IS '…';
Trait Implementations§
Source§impl Clone for TsDictionaryChange
impl Clone for TsDictionaryChange
Source§fn clone(&self) -> TsDictionaryChange
fn clone(&self) -> TsDictionaryChange
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 TsDictionaryChange
impl Debug for TsDictionaryChange
Source§impl<'de> Deserialize<'de> for TsDictionaryChange
impl<'de> Deserialize<'de> for TsDictionaryChange
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 TsDictionaryChange
Source§impl PartialEq for TsDictionaryChange
impl PartialEq for TsDictionaryChange
Source§fn eq(&self, other: &TsDictionaryChange) -> bool
fn eq(&self, other: &TsDictionaryChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TsDictionaryChange
impl Serialize for TsDictionaryChange
impl StructuralPartialEq for TsDictionaryChange
Auto Trait Implementations§
impl Freeze for TsDictionaryChange
impl RefUnwindSafe for TsDictionaryChange
impl Send for TsDictionaryChange
impl Sync for TsDictionaryChange
impl Unpin for TsDictionaryChange
impl UnsafeUnpin for TsDictionaryChange
impl UnwindSafe for TsDictionaryChange
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