pub struct NormalizationPipeline { /* private fields */ }Expand description
Normalization pipeline that applies multiple stages in sequence
Implementations§
Source§impl NormalizationPipeline
impl NormalizationPipeline
pub fn new() -> Self
pub fn add_stage<S: NormalizationStage + 'static>(self, stage: S) -> Self
pub fn run(&self, schema: &mut Schema) -> Result<(), Vec<NormalizationError>>
Sourcepub fn standard() -> Self
pub fn standard() -> Self
Create the standard normalization pipeline.
Delegates to PipelineBuilder with all default settings.
Sourcepub fn for_codegen() -> Self
pub fn for_codegen() -> Self
Create a codegen-oriented pipeline that only runs CircularDependencyResolution.
This is designed for use when the caller has already run
schema.consolidate_types() and does not want NamingResolution
(which would rename types and create a name-domain mismatch
between the SemanticSchema and the raw Schema used for rendering).
Delegates to PipelineBuilder with consolidation and naming skipped.
Trait Implementations§
Source§impl Default for NormalizationPipeline
impl Default for NormalizationPipeline
Source§fn default() -> NormalizationPipeline
fn default() -> NormalizationPipeline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NormalizationPipeline
impl !RefUnwindSafe for NormalizationPipeline
impl !Send for NormalizationPipeline
impl !Sync for NormalizationPipeline
impl Unpin for NormalizationPipeline
impl UnsafeUnpin for NormalizationPipeline
impl !UnwindSafe for NormalizationPipeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more