/// Consume this generator to create a Schema.
/// This will return an error if there are enums that have not been completely explored.
Consume this generator to create a Schema.
This will return an error if there are enums that have not been completely explored.
Consume this generator to create a Schema . This will return an error if there are enums that have not been completely explored .
pub fn schema(self) -> Result<Schema> {
        let mut schema = self.schema;
        for (name, node) in schema.iter_mut() {
            node.normalize().map_err(|_| {
                Error::Error(anyhow!("Unknown node in container: {}", name.clone()))
            })?;
        }
        if self.incomplete_enums.is_empty() {
            Ok(schema)
        } else {
            Err(Error::Error(anyhow!(
                "Missing variants: {:?}",
                self.incomplete_enums.into_iter().collect::<Vec<_>>()
            )))
        }
    }
pub fn schema ( self ) -> Result < Schema > { let mut schema = self . schema ; for ( name , node ) in schema . iter_mut ( ) { node . normalize ( ) . map_err ( | _ | { Error :: Error ( anyhow ! ( " " name clone ( ) ) ) } ) ? ; } if self . incomplete_enums . is_empty ( ) { Ok ( schema ) } else { Err ( Error :: Error ( anyhow ! ( " " self incomplete_enums into_iter ( ) collect Vec ( ) ) ) ) } }
Consume this generator to create a Schema.
Consume this generator to create a Schema .
self