pub struct Serialize<'a, T> { /* private fields */ }

Implementations§

source§

impl<'a, T> Serialize<'a, T>

source

pub fn indent_prefix(self, prefix: &'a str) -> Self

Enable indentation and line breaks.

prefix is repeated at the start of each line by the number of indentation levels. The default is " ", two spaces.

source

pub fn no_indent(self) -> Self

Disable indentation and line breaks

Trait Implementations§

source§

impl<'a, T: Clone> Clone for Serialize<'a, T>

source§

fn clone(&self) -> Serialize<'a, T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, T: Debug> Debug for Serialize<'a, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Definition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Directive>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, DirectiveDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, DirectiveList>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, DirectiveList>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Document>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, EnumType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, EnumTypeDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, EnumTypeExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, EnumValueDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ExecutableDocument>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ExtendedType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Field>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Field>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, FieldDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, FieldSet>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Fragment>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, FragmentDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, FragmentSpread>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, FragmentSpread>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InlineFragment>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InlineFragment>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InputObjectType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InputObjectTypeDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InputObjectTypeExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InputValueDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InterfaceType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InterfaceTypeDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, InterfaceTypeExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ObjectType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ObjectTypeDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ObjectTypeExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Operation>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, OperationDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ScalarType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ScalarTypeDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, ScalarTypeExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Schema>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, SchemaDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, SchemaExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Selection>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Selection>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, SelectionSet>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, UnionType>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, UnionTypeDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, UnionTypeExtension>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, Value>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Serialize<'_, VariableDefinition>

Serialize to GraphQL syntax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T> RefUnwindSafe for Serialize<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for Serialize<'a, T>
where T: Sync,

§

impl<'a, T> Sync for Serialize<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for Serialize<'a, T>

§

impl<'a, T> UnwindSafe for Serialize<'a, T>
where T: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Fmt for T
where T: Display,

source§

fn fg<C>(self, color: C) -> Foreground<Self>
where C: Into<Option<Color>>, Self: Display,

Give this value the specified foreground colour.
source§

fn bg<C>(self, color: C) -> Background<Self>
where C: Into<Option<Color>>, Self: Display,

Give this value the specified background colour.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StdoutFmt for T
where T: Display,

source§

fn fg<C>(self, color: C) -> Foreground<Self>
where C: Into<Option<Color>>,

Give this value the specified foreground colour, when color is enabled for stdout.
source§

fn bg<C>(self, color: C) -> Background<Self>
where C: Into<Option<Color>>,

Give this value the specified background colour, when color is enabled for stdout.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.