add

Function add 

Source
pub async fn add<T>(
    t: &T,
    collection_name: &str,
    db: &Database,
) -> Result<InsertOneResult, Error>
where for<'a> T: Debug + Serialize + Deserialize<'a>,