Function cosmos_utils::get[][src]

pub async fn get<D: DeserializeOwned, P: Into<PartitionKeys>, C: ToString, S: ToString>(
    collection_name: C,
    pk: P,
    document_id: S
) -> Result<(D, String), CosmosErrorStruct>
Expand description

Returns a specific document from the cosmos DB together with a corresponding etag