MooseX...rialize(3pm)
π NAME π
MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize β it's a custom meta-attribute-trait that lets you bypass serialization, bestie π¦
β¨ VERSION β¨
version 0.53 β she's giving vintage but she works π
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, copy-paste ready, no notes:
package Point;
use Moose;
use MooseX::Storage;
with Storage('format' => 'JSON', 'io' => 'File');
has 'x' => (is => 'rw', isa => 'Int');
has 'y' => (is => 'rw', isa => 'Int');
has 'foo' => (
traits => [ 'DoNotSerialize' ],
is => 'rw',
isa => 'CodeRef',
);
1;
look at foo go π«Ά β she's an attribute with traits => [ 'DoNotSerialize' ] and she simply will not be participating in the serialization. main character refusal energy, honestly π
π DESCRIPTION π
so like. sometimes you have an attribute and you're just likeβ¦ no. not this one. not in the serialization π and that's valid. when that's the vibe, you make that attribute use this custom meta-attribute-trait, and boom β she's excluded.
lowkey the SYNOPSIS up there is a perfectly good example to cargo-cult fr fr, so if you want the full picture, go look at it π
π SUPPORT π
need help? got bugs? we got you, bestie:
- Bugs may be submitted through the RT bug tracker β <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> β or, if email is more your thing,
bug-MooseX-Storage@rt.cpan.orgπ§ - There's also a mailing list for users of this distribution, at <http://lists.perl.org/list/moose.html> π
- And there's an irc channel for users of this distribution too β
#mooseonirc.perl.org, aka <irc://irc.perl.org/#moose>. come hang out π
π AUTHORS π
these are the icons who made it happen, give them their flowers π
- Chris Prather <chris.prather@iinteractive.com>
- Stevan Little <stevan.little@iinteractive.com>
- ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman) <nothingmuch@woobling.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2007 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
and that's the whole page!! this doc shipped as part of perl v5.36.0 and the date on it is 2022-10-16 β so yeah, vintage, but make it fashion β¨ go forth and not-serialize things, bestie π¦
π¦ where this page comes from
- ubuntu noble: libmoosex-storage-perl 0.53-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-storage-perl 0.53-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-storage-perl 0.53-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms