Trait dml_tools::sql::DBObject

source ·
pub trait DBObject: Debug + Serialize + Deserialize {
    // Required method
    fn to_sql(&self, type_writer: &dyn TypeWriter) -> String;
}
Expand description

Trait for serializing a database object to as String

Required Methods§

source

fn to_sql(&self, type_writer: &dyn TypeWriter) -> String

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Box<dyn DBObject>

source§

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<'typetag> Serialize for dyn DBObject + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn DBObject + Send + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn DBObject + Send + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn DBObject + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Strictest for dyn DBObject

§

type Object = dyn DBObject

Implementors§