pub struct PartitionKeyIntermediate(/* private fields */);
Expand description
Intermediate type for making a seemless conversation between a [&str; 1] and a PartitionKey
This is needed because the previous signature of a lot of functions required a slice of
PartitionKeys however the interface for CosmosDB was changed to require a single PartitionKey
breaking all of the previous signatures.
Without this intermediate type the codebase would require a lot of rewriting the signatures.
Trait Implementations§
Source§impl From<PartitionKeyIntermediate> for String
impl From<PartitionKeyIntermediate> for String
Source§fn from(from: PartitionKeyIntermediate) -> String
fn from(from: PartitionKeyIntermediate) -> String
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PartitionKeyIntermediate
impl RefUnwindSafe for PartitionKeyIntermediate
impl Send for PartitionKeyIntermediate
impl Sync for PartitionKeyIntermediate
impl Unpin for PartitionKeyIntermediate
impl UnwindSafe for PartitionKeyIntermediate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more