Trait mysql_connector::model::ActiveModel

source ·
pub trait ActiveModel<ModelData: ModelData>: Default {
    // Required methods
    async fn into_values<S: Stream>(
        self,
        conn: &mut Connection<S>,
    ) -> Result<Vec<NamedValue>, Error>;
    fn primary(&self) -> Option<Value>;

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

Required Methods§

source

async fn into_values<S: Stream>( self, conn: &mut Connection<S>, ) -> Result<Vec<NamedValue>, Error>

source

fn primary(&self) -> Option<Value>

Provided Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§