pub struct Serializer<W, F> { /* private fields */ }
Expand description
A structure for serializing Rust GraphQL AST types to GraphQL documents.
Implementations§
Source§impl<W> Serializer<W, CompactFormatter>where
W: Write,
impl<W> Serializer<W, CompactFormatter>where
W: Write,
Source§impl<W, F> Serializer<W, F>
impl<W, F> Serializer<W, F>
Sourcepub fn with_formatter(writer: W, formatter: F) -> Self
pub fn with_formatter(writer: W, formatter: F) -> Self
Create a new serializer with a custom formatter.
Auto Trait Implementations§
impl<W, F> Freeze for Serializer<W, F>
impl<W, F> RefUnwindSafe for Serializer<W, F>where
W: RefUnwindSafe,
F: RefUnwindSafe,
impl<W, F> Send for Serializer<W, F>
impl<W, F> Sync for Serializer<W, F>
impl<W, F> Unpin for Serializer<W, F>
impl<W, F> UnwindSafe for Serializer<W, F>where
W: UnwindSafe,
F: 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