pub enum TsConfigurationChange {
Create(TsConfiguration),
Replace {
from: TsConfiguration,
to: TsConfiguration,
},
Drop {
qname: QualifiedName,
},
AddMapping {
qname: QualifiedName,
token_type: String,
dictionaries: Vec<QualifiedName>,
},
AlterMapping {
qname: QualifiedName,
token_type: String,
dictionaries: Vec<QualifiedName>,
},
DropMapping {
qname: QualifiedName,
token_type: String,
},
AlterOwner {
qname: QualifiedName,
owner: Identifier,
},
CommentOn {
qname: QualifiedName,
comment: Option<String>,
},
}Expand description
A structural change to a single text-search configuration.
Identity = qname. Mapping changes use ADD MAPPING / ALTER MAPPING /
DROP MAPPING; all changes are Destructiveness::Safe.
Variants§
Create(TsConfiguration)
CREATE TEXT SEARCH CONFIGURATION …
Replace
DROP TEXT SEARCH CONFIGURATION old; CREATE TEXT SEARCH CONFIGURATION new;
Emitted when the parser field changes (no in-place ALTER for
parser changes in PG).
Fields
from: TsConfigurationAs it exists in the target (live).
to: TsConfigurationAs it should exist in the source.
Drop
DROP TEXT SEARCH CONFIGURATION name;
Fields
qname: QualifiedNameConfiguration name.
AddMapping
ALTER TEXT SEARCH CONFIGURATION name ADD MAPPING FOR token_type WITH dict, …;
Emitted for a token type that exists in the source but not in the target.
Fields
qname: QualifiedNameConfiguration name.
dictionaries: Vec<QualifiedName>Desired dictionary chain.
AlterMapping
ALTER TEXT SEARCH CONFIGURATION name ALTER MAPPING FOR token_type WITH dict, …;
Emitted for a token type whose dictionary chain has changed.
Fields
qname: QualifiedNameConfiguration name.
dictionaries: Vec<QualifiedName>Desired dictionary chain.
DropMapping
ALTER TEXT SEARCH CONFIGURATION name DROP MAPPING FOR token_type;
Emitted for a token type that exists in the target but not in the source.
AlterOwner
ALTER TEXT SEARCH CONFIGURATION name OWNER TO owner;
CommentOn
COMMENT ON TEXT SEARCH CONFIGURATION name IS '…';
Fields
qname: QualifiedNameConfiguration name.
Trait Implementations§
Source§impl Clone for TsConfigurationChange
impl Clone for TsConfigurationChange
Source§fn clone(&self) -> TsConfigurationChange
fn clone(&self) -> TsConfigurationChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TsConfigurationChange
impl Debug for TsConfigurationChange
Source§impl<'de> Deserialize<'de> for TsConfigurationChange
impl<'de> Deserialize<'de> for TsConfigurationChange
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>,
impl Eq for TsConfigurationChange
Source§impl PartialEq for TsConfigurationChange
impl PartialEq for TsConfigurationChange
Source§fn eq(&self, other: &TsConfigurationChange) -> bool
fn eq(&self, other: &TsConfigurationChange) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TsConfigurationChange
impl Serialize for TsConfigurationChange
impl StructuralPartialEq for TsConfigurationChange
Auto Trait Implementations§
impl Freeze for TsConfigurationChange
impl RefUnwindSafe for TsConfigurationChange
impl Send for TsConfigurationChange
impl Sync for TsConfigurationChange
impl Unpin for TsConfigurationChange
impl UnsafeUnpin for TsConfigurationChange
impl UnwindSafe for TsConfigurationChange
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
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>
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>
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