MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed - A Trait for attributes which permits various indexing tunables


MooseX-AttributeIndexes documentation Contained in the MooseX-AttributeIndexes distribution.

Index


Code Index:

NAME

Top

MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed - A Trait for attributes which permits various indexing tunables

VERSION

Top

version 1.0.1

ATTRIBUTES

Top

indexed

Bool. 0 = This attribute is not/cannot indexed, 1 = This Attribute is/can-be indexed.

CodeRef. sub{ my( $attribute_meta, $object, $attribute_value ) = @_; .... return }

primary_index

Bool. 0 = This attribute is not a primary index, 1 = This Attribute is a primary index.

CodeRef. sub{ my( $attribute_meta, $object, $attribute_value ) = @_; .... return }

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


MooseX-AttributeIndexes documentation Contained in the MooseX-AttributeIndexes distribution.

use strict;
use warnings;
package MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed;
BEGIN {
  $MooseX::AttributeIndexes::Meta::Attribute::Trait::Indexed::VERSION = '1.0.1';
}

# ABSTRACT: A Trait for attributes which permits various indexing tunables

# $Id:$
use Moose::Role;
use Moose::Meta::Attribute::Custom::Trait::Indexed;
use MooseX::Types::Moose 0.19 qw(:all);
use namespace::autoclean 0.08;


has 'indexed' => (
  is       => 'ro',
  isa      => Bool | CodeRef,
  required => 1,
  default  => 0,
);


has 'primary_index' => (
  is       => 'ro',
  isa      => Bool | CodeRef,
  required => 1,
  default  => 0,
);

1;


__END__