herb 0.11.2

Rust bindings for Herb
Documentation
// NOTE: This file is generated by the templates/template.rb script and should not
// be modified manually. See templates/rust/src/parser_options.rs.erb

#[derive(Debug, Clone)]
pub struct ParserOptions {
  pub action_view_helpers: bool,
  pub analyze: bool,
  pub dot_notation_tags: bool,
  pub erb_openers: Option<Vec<String>>,
  pub herb_directives: bool,
  pub html: bool,
  pub iteration_nodes: bool,
  pub max_errors: Option<u32>,
  pub prism_nodes: bool,
  pub prism_nodes_deep: bool,
  pub prism_program: bool,
  pub render_nodes: bool,
  pub ruby_version: Option<String>,
  pub strict: bool,
  pub strict_locals: bool,
  pub timeout: u32,
  pub track_locations: bool,
  pub track_whitespace: bool,
  pub transform_conditionals: bool,
}

impl Default for ParserOptions {
  fn default() -> Self {
    Self {
      action_view_helpers: false,
      analyze: true,
      dot_notation_tags: false,
      erb_openers: None,
      herb_directives: false,
      html: true,
      iteration_nodes: false,
      max_errors: Some(25),
      prism_nodes: false,
      prism_nodes_deep: false,
      prism_program: false,
      render_nodes: false,
      ruby_version: Some("4.0".to_string()),
      strict: true,
      strict_locals: false,
      timeout: 1000,
      track_locations: true,
      track_whitespace: false,
      transform_conditionals: false,
    }
  }
}