|
NAMETypes::UUID - type constraints for UUIDs SYNOPSIS package FroobleStick;
use Moo;
use Types::UUID;
has identifier => (
is => 'lazy',
isa => Uuid,
coerce => 1,
builder => Uuid->generator,
);
DESCRIPTIONTypes::UUID is a type constraint library suitable for use with Moo/Moose attributes, Kavorka sub signatures, and so forth. TypeCurrently the module only provides one type constraint, which is exported by default.
MethodsThe "Uuid" type constraint is actually blessed into a subclass of Type::Tiny, and provides an aditional method:
BUGSPlease report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Types-UUID>. SEE ALSOType::Tiny::Manual, UUID::Tiny. AUTHORToby Inkster <tobyink@cpan.org>. COPYRIGHT AND LICENCEThis software is copyright (c) 2014 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. DISCLAIMER OF WARRANTIESTHIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|