Function cosmos_utils::insert [−][src]
pub async fn insert<D: Serialize, P: Into<PartitionKeys>, C: ToString>(
collection_name: C,
pk: P,
document: &D,
etag: Option<&str>
) -> Result<String, CosmosErrorStruct>Expand description
Insert a document into the cosmos database and returning an etag from the response if successful
