JSON::RPC::Common::TypeConstraints - Type constraint library


JSON-RPC-Common documentation Contained in the JSON-RPC-Common distribution.

Index


Code Index:

NAME

Top

JSON::RPC::Common::TypeConstraints - Type constraint library

VERSION

Top

version 0.10

SYNOPSIS

Top

	use JSON::RPC::Common::TypeConstraints qw(JSONValue);

DESCRIPTION

Top

See MooseX::Types

TYPES

Top

JSONDefined

Value|ArrayRef|HashRef

JSONValue

Undef|Value|ArrayRef|HashRef

JSONContainer

ArrayRef|HashRef

AUTHOR

Top

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

Top


JSON-RPC-Common documentation Contained in the JSON-RPC-Common distribution.

#!/usr/bin/perl

package JSON::RPC::Common::TypeConstraints;
BEGIN {
  $JSON::RPC::Common::TypeConstraints::VERSION = '0.10';
}
# ABSTRACT: Type constraint library

use strict;
use warnings;

use MooseX::Types -declare => [qw(JSONDefined JSONValue JSONContainer)];
use MooseX::Types::Moose qw(Value ArrayRef HashRef Undef);

subtype JSONDefined, as Value|ArrayRef|HashRef;

subtype JSONValue, as Undef|Value|ArrayRef|HashRef;

subtype JSONContainer, as ArrayRef|HashRef;

__PACKAGE__




__END__