{
    "content": [
        {
            "type": "text",
            "text": "# Specio::Constraint::Enum (perldoc)\n\n## NAME\n\nSpecio::Constraint::Enum - A class for constraints which require a string matching one of a set of values\n\n## SYNOPSIS\n\nmy $type = Specio::Constraint::Enum->new(...);\nprint $, \"\\n\" for @{ $type->values };\n\n## DESCRIPTION\n\nThis is a specialized type constraint class for types which require a\nstring that matches one of a list of values.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **API**\n- **ROLES**\n- **SUPPORT**\n- **SOURCE**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Specio::Constraint::Enum",
        "section": "",
        "mode": "perldoc",
        "summary": "Specio::Constraint::Enum - A class for constraints which require a string matching one of a set of values",
        "synopsis": "my $type = Specio::Constraint::Enum->new(...);\nprint $, \"\\n\" for @{ $type->values };",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "API",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "ROLES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SOURCE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Specio::Constraint::Enum - A class for constraints which require a\nstring matching one of a set of values\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 0.47\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $type = Specio::Constraint::Enum->new(...);\nprint $, \"\\n\" for @{ $type->values };\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This is a specialized type constraint class for types which require a\nstring that matches one of a list of values.\n",
                "subsections": []
            },
            "API": {
                "content": "This class provides all of the same methods as\nSpecio::Constraint::Simple, with a few differences:\n\nSpecio::Constraint::Enum->new( ... )\nThe \"parent\" parameter is ignored if it passed, as it is always set to\nthe \"Str\" type.\n\nThe \"inlinegenerator\" and \"constraint\" parameters are also ignored.\nThis class provides its own default inline generator subroutine\nreference.\n\nFinally, this class requires an additional parameter, \"values\". This\nmust be a an arrayref of valid strings for the type.\n\n$enum->values\nReturns an array reference of valid values for the type.\n",
                "subsections": []
            },
            "ROLES": {
                "content": "This class does the Specio::Constraint::Role::Interface and\nSpecio::Role::Inlinable roles.\n",
                "subsections": []
            },
            "SUPPORT": {
                "content": "Bugs may be submitted at\n<https://github.com/houseabsolute/Specio/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
                "subsections": []
            },
            "SOURCE": {
                "content": "The source code repository for Specio can be found at\n<https://github.com/houseabsolute/Specio>.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Dave Rolsky <autarch@urth.org>\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "This software is Copyright (c) 2012 - 2021 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included\nwith this distribution.\n",
                "subsections": []
            }
        }
    }
}