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§
async fn into_values<S: Stream>( self, conn: &mut Connection<S>, ) -> Result<Vec<NamedValue>, Error>
fn primary(&self) -> Option<Value>
Provided Methods§
async fn insert<S: Stream>(self, conn: &mut Connection<S>) -> Result<u64, Error>where
Self: Sized,
Object Safety§
This trait is not object safe.