Enum SchemaChangeEvent

Source
pub enum SchemaChangeEvent {
    KeyspaceChange {
        change_type: SchemaChangeType,
        keyspace_name: String,
    },
    TableChange {
        change_type: SchemaChangeType,
        keyspace_name: String,
        object_name: String,
    },
    TypeChange {
        change_type: SchemaChangeType,
        keyspace_name: String,
        type_name: String,
    },
    FunctionChange {
        change_type: SchemaChangeType,
        keyspace_name: String,
        function_name: String,
        arguments: Vec<String>,
    },
    AggregateChange {
        change_type: SchemaChangeType,
        keyspace_name: String,
        aggregate_name: String,
        arguments: Vec<String>,
    },
}
Expand description

Event that notifies about changes in the cluster topology.

Variants§

§

KeyspaceChange

Keyspace was altered.

Fields

§change_type: SchemaChangeType

Type of change that was made to the keyspace.

§keyspace_name: String

Name of the keyspace that was altered.

§

TableChange

Table was altered.

Fields

§change_type: SchemaChangeType

Type of change that was made to the table.

§keyspace_name: String

Name of the keyspace that contains the table.

§object_name: String

Name of the table that was altered.

§

TypeChange

Type was altered.

Fields

§change_type: SchemaChangeType

Type of change that was made to the type.

§keyspace_name: String

Name of the keyspace that contains the type.

§type_name: String

Name of the type that was altered.

§

FunctionChange

Function was altered.

Fields

§change_type: SchemaChangeType

Type of change that was made to the function.

§keyspace_name: String

Name of the keyspace that contains the function.

§function_name: String

Name of the function that was altered.

§arguments: Vec<String>

List of argument types of the function that was altered.

§

AggregateChange

Aggregate was altered.

Fields

§change_type: SchemaChangeType

Type of change that was made to the aggregate.

§keyspace_name: String

Name of the keyspace that contains the aggregate.

§aggregate_name: String

Name of the aggregate that was altered.

§arguments: Vec<String>

List of argument types of the aggregate that was altered.

Implementations§

Source§

impl SchemaChangeEvent

Source

pub fn deserialize(buf: &mut &[u8]) -> Result<Self, SchemaChangeEventParseError>

Deserialize a schema change event from the provided buffer.

Trait Implementations§

Source§

impl Debug for SchemaChangeEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,