If InlineParserConfig::new() is a const fn, you can define a const DEFAULT_PARSER_CONFIG_REF: &InlineParserConfig = InlineParserConfig::new(); and then just use config_opt.unwrap_or(DEFAULT_PARSER_CONFIG_REF).
Of course it can only be const fn if none of its fields require allocations.