pub(crate) fn serialize_partition_key<PK: Serialize>(pk: &PK) -> azure_core::Result<String> {
    use azure_core::error::ResultExt;
    // this must be serialized as an array even tough CosmosDB supports only a sigle partition key.
    serde_json::to_string(&[pk]).context(
        azure_core::error::ErrorKind::DataConversion,
        "could not convert partition_key into String",
    )
}
/// Serialize the partition key in the format CosmosDB expects.
Serialize the partition key in the format CosmosDB expects.
Serialize the partition key in the format CosmosDB expects .
pub(crate) fn serialize_partition_key<PK: Serialize>(pk: &PK) -> azure_core::Result<String> {
    use azure_core::error::ResultExt;
    // this must be serialized as an array even tough CosmosDB supports only a sigle partition key.
    serde_json::to_string(&[pk]).context(
        azure_core::error::ErrorKind::DataConversion,
        "could not convert partition_key into String",
    )
}
pub ( crate ) fn serialize_partition_key < PK : Serialize > ( pk : & PK ) -> azure_core :: Result < String > { use azure_core :: error :: ResultExt ; // this must be serialized as an array even tough CosmosDB supports only a sigle partition key. serde_json :: to_string ( & [ pk ] ) . context ( azure_core :: error :: ErrorKind :: DataConversion , " " , ) }
Serialize the partition key in the format CosmosDB expects.
Serialize the partition key in the format CosmosDB expects .
pk
&PK