pub struct OrderedMap<V>(/* private fields */);Expand description
An ordered map that serialises as a JSON object.
serde_json::Map only holds Value, and option order matters for
readability because it follows the caller’s own criteria order, so the pairs
stay in a vector and are written out as an object.
Implementations§
Trait Implementations§
Source§impl<V: Debug> Debug for OrderedMap<V>
impl<V: Debug> Debug for OrderedMap<V>
Source§impl<V> Default for OrderedMap<V>
impl<V> Default for OrderedMap<V>
Auto Trait Implementations§
impl<V> Freeze for OrderedMap<V>
impl<V> RefUnwindSafe for OrderedMap<V>
impl<V> Send for OrderedMap<V>
impl<V> Sync for OrderedMap<V>
impl<V> Unpin for OrderedMap<V>
impl<V> UnsafeUnpin for OrderedMap<V>
impl<V> UnwindSafe for OrderedMap<V>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more