pub struct ColumnDef {Show 19 fields
pub colname: String,
pub type_name: Option<TypeName>,
pub compression: String,
pub inhcount: i32,
pub is_local: bool,
pub is_not_null: bool,
pub is_from_type: bool,
pub storage: String,
pub storage_name: String,
pub raw_default: Option<Box<Node>>,
pub cooked_default: Option<Box<Node>>,
pub identity: String,
pub identity_sequence: Option<RangeVar>,
pub generated: String,
pub coll_clause: Option<Box<CollateClause>>,
pub coll_oid: u32,
pub constraints: Vec<Node>,
pub fdwoptions: Vec<Node>,
pub location: i32,
}
Fields§
§colname: String
§type_name: Option<TypeName>
§compression: String
§inhcount: i32
§is_local: bool
§is_not_null: bool
§is_from_type: bool
§storage: String
§storage_name: String
§raw_default: Option<Box<Node>>
§cooked_default: Option<Box<Node>>
§identity: String
§identity_sequence: Option<RangeVar>
§generated: String
§coll_clause: Option<Box<CollateClause>>
§coll_oid: u32
§constraints: Vec<Node>
§fdwoptions: Vec<Node>
§location: i32
Implementations§
Trait Implementations§
source§impl Message for ColumnDef
impl Message for ColumnDef
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for ColumnDef
impl PartialEq for ColumnDef
impl StructuralPartialEq for ColumnDef
Auto Trait Implementations§
impl RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnwindSafe for ColumnDef
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