Trait mysql_connector::model::ActiveModel

source ·
pub trait ActiveModel<ModelData: ModelData>: Default {
    // Required method
    fn into_values(self) -> Result<Vec<NamedValue>, Error>;

    // Provided method
    async fn insert<S: Socket>(
        self,
        conn: &mut Connection<S>
    ) -> Result<u64, Error>
       where Self: Sized { ... }
}

Required Methods§

Provided Methods§

source

async fn insert<S: Socket>(self, conn: &mut Connection<S>) -> Result<u64, Error>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§