pub struct DdlRel {
pub table_schema: Option<NamedStruct>,
pub table_defaults: Option<Struct>,
pub object: i32,
pub op: i32,
pub view_definition: Option<Box<Rel>>,
pub common: Option<RelCommon>,
pub advanced_extension: Option<AdvancedExtension>,
pub write_type: Option<WriteType>,
}
Fields§
§table_schema: Option<NamedStruct>
The columns that will be modified (representing after-image of a schema change)
table_defaults: Option<Struct>
The default values for the columns (representing after-image of a schema change) E.g., in case of an ALTER TABLE that changes some of the column default values, we expect the table_defaults Struct to report a full list of default values reflecting the result of applying the ALTER TABLE operator successfully
object: i32
Which type of object we operate on
op: i32
The type of operation to perform
view_definition: Option<Box<Rel>>
The body of the CREATE VIEW
common: Option<RelCommon>
§advanced_extension: Option<AdvancedExtension>
§write_type: Option<WriteType>
Definition of which type of object we are operating on
Implementations§
Source§impl DdlRel
impl DdlRel
Sourcepub fn object(&self) -> DdlObject
pub fn object(&self) -> DdlObject
Returns the enum value of object
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_object(&mut self, value: DdlObject)
pub fn set_object(&mut self, value: DdlObject)
Sets object
to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for DdlRel
impl<'de> Deserialize<'de> for DdlRel
§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 Message for DdlRel
impl Message for DdlRel
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for DdlRel
Auto Trait Implementations§
impl !Freeze for DdlRel
impl RefUnwindSafe for DdlRel
impl Send for DdlRel
impl Sync for DdlRel
impl Unpin for DdlRel
impl UnwindSafe for DdlRel
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