DBObject

Trait DBObject 

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

    // Provided methods
    fn is_top_level(&self) -> bool { ... }
    fn top_level_to_sql(
        &self,
        _type_writer: &dyn TypeWriter,
        _delayed: &Vec<&Box<&dyn DBObject>>,
    ) -> String { ... }
}
Expand description

Trait for serializing a database object to as String

Required Methods§

Source

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

Provided Methods§

Source

fn is_top_level(&self) -> bool

Source

fn top_level_to_sql( &self, _type_writer: &dyn TypeWriter, _delayed: &Vec<&Box<&dyn DBObject>>, ) -> String

Trait Implementations§

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

Implementors§