[−][src]Struct serde_generate::CodeGeneratorConfig
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_encodings<I>(self, encodings: I) -> Self where
I: IntoIterator<Item = Encoding>,
[src]
I: IntoIterator<Item = Encoding>,
Whether to include specialized methods for specific encodings.
pub fn with_external_definitions(
self,
external_definitions: ExternalDefinitions
) -> Self
[src]
self,
external_definitions: ExternalDefinitions
) -> Self
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]
fn clone(&self) -> CodeGeneratorConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CodeGeneratorConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for CodeGeneratorConfig
impl Send for CodeGeneratorConfig
impl Sync for CodeGeneratorConfig
impl Unpin for CodeGeneratorConfig
impl UnwindSafe for CodeGeneratorConfig
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,