Struct db_up::SqlStatement
source · pub struct SqlStatement {
pub annotation: Option<SqlStatementAnnotation>,
pub statement: String,
}
Expand description
A single, optionally annotated, SQL statement
Fields§
§annotation: Option<SqlStatementAnnotation>
The optional annotation of of the statement
statement: String
The actual SQL statement
Trait Implementations§
source§impl Clone for SqlStatement
impl Clone for SqlStatement
source§fn clone(&self) -> SqlStatement
fn clone(&self) -> SqlStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SqlStatement
impl Debug for SqlStatement
source§impl<'de> Deserialize<'de> for SqlStatement
impl<'de> Deserialize<'de> for SqlStatement
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SqlStatement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SqlStatement, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SqlStatement
impl Serialize for SqlStatement
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more