pub enum RenderStep {
Types,
TypesSerdeXmlRs {
version: SerdeXmlRsVersion,
},
TypesSerdeQuickXml,
Defaults,
NamespaceConstants,
WithNamespaceTrait,
QuickXmlSerialize {
with_namespaces: bool,
default_namespace: Option<Namespace>,
},
QuickXmlDeserialize {
boxed_deserializer: bool,
},
}
Expand description
Configuration for the RenderSteps
s
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: SerdeXmlRsVersion
Version 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.
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
QuickXmlDeserialize
Renderer that renders code for the quick_xml
deserializer of the
different types.
Fields
boxed_deserializer: bool
Whether 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.