pub enum RenderStep {
Types,
TypesSerdeXmlRs {
version: SerdeXmlRsVersion,
},
TypesSerdeQuickXml,
Defaults,
NamespaceConstants,
PrefixConstants,
WithNamespaceTrait,
QuickXmlSerialize {
namespaces: NamespaceSerialization,
default_namespace: Option<Namespace>,
},
QuickXmlDeserialize {
boxed_deserializer: bool,
},
}Expand description
Configuration for the RenderStepss
the Renderer should use for rendering the code.
Caution: Some render steps are incompatible to each other (e.g. only
one TypesXXX step should be used, because they render the general type
structure). While other render steps depend on each other (e.g. QuickXmlXXX
depends on Types and NamespaceConstants).
Variants§
Types
Step to render the pure types.
TypesSerdeXmlRs
Step to render the types with serde-xml-rs support.
Fields
version: SerdeXmlRsVersionVersion of serde-xml-rs to render the code for.
TypesSerdeQuickXml
Step to render the types with quick_xml serde support.
Defaults
Renderer to render associated methods that return the default values of the different fields of a struct.
NamespaceConstants
Renderer to add constants for the namespaces to the generated code.
PrefixConstants
Renderer to add constants for the namespace prefixes to the generated code.
WithNamespaceTrait
Renderer that adds the WithNamespace trait to
the generated types.
QuickXmlSerialize
Renderer that renders code for the quick_xml serializer of the
different types.
Fields
namespaces: NamespaceSerializationWhether to add namespaces to the root element during serialization or not.
QuickXmlDeserialize
Renderer that renders code for the quick_xml deserializer of the
different types.
Fields
boxed_deserializer: boolWhether to box the deserializer or not.
For more details have a look at QuickXmlDeserializeRenderer::boxed_deserializer.
Implementations§
Trait Implementations§
Source§impl Clone for RenderStep
impl Clone for RenderStep
Source§fn clone(&self) -> RenderStep
fn clone(&self) -> RenderStep
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderStep
impl Debug for RenderStep
Source§impl RenderStepConfig for RenderStep
impl RenderStepConfig for RenderStep
Source§fn render_step_type(&self) -> RenderStepType
fn render_step_type(&self) -> RenderStepType
Source§fn boxed_clone(&self) -> Box<dyn RenderStepConfig>
fn boxed_clone(&self) -> Box<dyn RenderStepConfig>
Source§fn into_render_step(self: Box<Self>) -> Box<dyn RenderStepTrait>
fn into_render_step(self: Box<Self>) -> Box<dyn RenderStepTrait>
Source§fn is_mutual_exclusive_to(&self, other: &dyn RenderStepConfig) -> bool
fn is_mutual_exclusive_to(&self, other: &dyn RenderStepConfig) -> bool
true if self is mutual exclusive to other, false otherwise.