Struct libpgquery_sys::CreateStmt [−][src]
pub struct CreateStmt {
pub relation: Option<RangeVar>,
pub table_elts: Vec<Node>,
pub inh_relations: Vec<Node>,
pub partbound: Option<PartitionBoundSpec>,
pub partspec: Option<PartitionSpec>,
pub of_typename: Option<TypeName>,
pub constraints: Vec<Node>,
pub options: Vec<Node>,
pub oncommit: i32,
pub tablespacename: String,
pub access_method: String,
pub if_not_exists: bool,
}
Fields
relation: Option<RangeVar>
table_elts: Vec<Node>
inh_relations: Vec<Node>
partbound: Option<PartitionBoundSpec>
partspec: Option<PartitionSpec>
of_typename: Option<TypeName>
constraints: Vec<Node>
options: Vec<Node>
oncommit: i32
tablespacename: String
access_method: String
if_not_exists: bool
Implementations
Returns the enum value of oncommit
, or the default if the field is set to an invalid enum value.
Sets oncommit
to the provided enum value.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
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.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateStmt
impl Send for CreateStmt
impl Sync for CreateStmt
impl Unpin for CreateStmt
impl UnwindSafe for CreateStmt
Blanket Implementations
Mutably borrows from an owned value. Read more