[][src]Struct serde_generate::CodeGeneratorConfig

pub struct CodeGeneratorConfig { /* fields omitted */ }

Code generation options meant to be supported by all languages.

Implementations

impl CodeGeneratorConfig[src]

pub fn new(module_name: String) -> Self[src]

Default config for the given module name.

pub fn with_serialization(self, serialization: bool) -> Self[src]

Whether to include serialization methods.

pub fn with_external_definitions(
    self,
    external_definitions: ExternalDefinitions
) -> Self
[src]

Container names provided by external modules.

pub fn with_comments(self, comments: DocComments) -> Self[src]

Comments attached to particular entity.

Trait Implementations

impl Clone for CodeGeneratorConfig[src]

impl Debug for CodeGeneratorConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.