insert

Function insert 

Source
pub async fn insert<D: CosmosObject, P: Into<PartitionKeyIntermediate>, C: ToString>(
    collection_name: C,
    pk: P,
    document: &D,
    etag: Option<&String>,
) -> Result<String, CosmosErrorStruct>
Expand description

Insert a document into the cosmos database and returning an etag from the response if successful