Struct serde_json::ser::Serializer [−][src]
A structure for serializing Rust values into JSON.
Implementations
impl<W> Serializer<W> where
W: Write,
[src][−]
W: Write,
impl<'a, W> Serializer<W, PrettyFormatter<'a>> where
W: Write,
[src][−]
W: Write,
impl<W, F> Serializer<W, F> where
W: Write,
F: Formatter,
[src][−]
W: Write,
F: Formatter,
pub fn with_formatter(writer: W, formatter: F) -> Self
[src][−]
Creates a new JSON visitor whose output will be written to the writer specified.
pub fn into_inner(self) -> W
[src][−]
Unwrap the Writer
from the Serializer
.
Trait Implementations
impl<'a, W, F> Serializer for &'a mut Serializer<W, F> where
W: Write,
F: Formatter,
[src][+]
W: Write,
F: Formatter,
Auto Trait Implementations
impl<W, F> RefUnwindSafe for Serializer<W, F> where
F: RefUnwindSafe,
W: RefUnwindSafe,
F: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, F> Send for Serializer<W, F> where
F: Send,
W: Send,
F: Send,
W: Send,
impl<W, F> Sync for Serializer<W, F> where
F: Sync,
W: Sync,
F: Sync,
W: Sync,
impl<W, F> Unpin for Serializer<W, F> where
F: Unpin,
W: Unpin,
F: Unpin,
W: Unpin,
impl<W, F> UnwindSafe for Serializer<W, F> where
F: UnwindSafe,
W: UnwindSafe,
F: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,