add

Function add 

Source
pub async fn add<T>(
    item: impl Borrow<T>,
    collection_name: &str,
    db: &Database,
) -> Result<InsertOneResult, Error>
where T: Serialize,