1MooseX::Storage::Meta::UAstetrriCMboounottsere:iX:b:Du:otSNetodotrSPaeegrreil:a:lDMioezcteua(m:3e:)nAttattriiobnute::DoNotSerialize(3)
2
3
4
6 MooseX::Storage::Meta::Attribute::DoNotSerialize - A custom
7 meta-attribute to bypass serialization
8
10 version 0.53
11
13 package Point;
14 use Moose;
15 use MooseX::Storage;
16
17 with Storage('format' => 'JSON', 'io' => 'File');
18
19 has 'x' => (is => 'rw', isa => 'Int');
20 has 'y' => (is => 'rw', isa => 'Int');
21
22 has 'foo' => (
23 metaclass => 'DoNotSerialize',
24 is => 'rw',
25 isa => 'CodeRef',
26 );
27
28 1;
29
31 Sometimes you don't want a particular attribute to be part of the
32 serialization, in this case, you want to make sure that attribute uses
33 this custom meta-attribute. See the SYNOPSIS for a nice example that
34 can be easily cargo-culted.
35
37 Bugs may be submitted through the RT bug tracker
38 <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or
39 bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-
40 Storage@rt.cpan.org>).
41
42 There is also a mailing list available for users of this distribution,
43 at <http://lists.perl.org/list/moose.html>.
44
45 There is also an irc channel available for users of this distribution,
46 at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
47
49 • Chris Prather <chris.prather@iinteractive.com>
50
51 • Stevan Little <stevan.little@iinteractive.com>
52
53 • יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
54
56 This software is copyright (c) 2007 by Infinity Interactive, Inc.
57
58 This is free software; you can redistribute it and/or modify it under
59 the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.32.1 MooseX:2:0S2t1o-r0a1g-e2:7:Meta::Attribute::DoNotSerialize(3)