Struct json_with_comments::value::ser::enum::ValueEnumSerializer
source · pub struct ValueEnumSerializer<I, F> { /* private fields */ }
Implementations§
source§impl<I, F> ValueEnumSerializer<I, F>
impl<I, F> ValueEnumSerializer<I, F>
pub fn start_newtype_variant<S: Serializer, T>( serializer: S, variant: &'static str, value: &T ) -> Result<JsoncValue<I, F>>
pub fn start_tuple_variant(variant: &str, len: usize) -> Result<Self>
pub fn start_struct_variant(variant: &str, len: usize) -> Result<Self>
Trait Implementations§
source§impl<I, F> SerializeStructVariant for ValueEnumSerializer<I, F>where
I: FromPrimitive,
F: FromPrimitive,
impl<I, F> SerializeStructVariant for ValueEnumSerializer<I, F>where
I: FromPrimitive,
F: FromPrimitive,
§type Ok = JsoncValue<I, F>
type Ok = JsoncValue<I, F>
Must match the
Ok
type of our Serializer
.§type Error = JsonWithCommentsError
type Error = JsonWithCommentsError
Must match the
Error
type of our Serializer
.source§impl<I, F> SerializeTupleVariant for ValueEnumSerializer<I, F>where
I: FromPrimitive,
F: FromPrimitive,
impl<I, F> SerializeTupleVariant for ValueEnumSerializer<I, F>where
I: FromPrimitive,
F: FromPrimitive,
§type Ok = JsoncValue<I, F>
type Ok = JsoncValue<I, F>
Must match the
Ok
type of our Serializer
.§type Error = JsonWithCommentsError
type Error = JsonWithCommentsError
Must match the
Error
type of our Serializer
.Auto Trait Implementations§
impl<I, F> RefUnwindSafe for ValueEnumSerializer<I, F>where
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, F> Send for ValueEnumSerializer<I, F>
impl<I, F> Sync for ValueEnumSerializer<I, F>
impl<I, F> Unpin for ValueEnumSerializer<I, F>
impl<I, F> UnwindSafe for ValueEnumSerializer<I, F>where
F: UnwindSafe,
I: UnwindSafe,
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