KiokuD...ialize(3pm)

πŸ“¦
version 0.57 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

KiokuDB::Meta::Attribute::DoNotSerialize β€” it's a trait for attributes you wanna skip, bestie. Periodt.


✨ VERSION ✨

version 0.57 πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so imagine you're in your class, right:

# in your class:

package Foo;
use Moose;

has bar => (
    traits => [qw(KiokuDB::DoNotSerialize)],
    isa => "Bar",
    is  => "ro",
    lazy_build => 1,
);

that's it. that's the whole vibe. πŸ’…


🌸 DESCRIPTION 🌸

so like, this Moose::Meta::Attribute trait is the one that tells KiokuDB to skip an attribute when serializing. iconic behavior honestly. it's giving "not everything needs to be in the group chat screenshot" energy. πŸ™ˆ

and KiokuDB also recognizes MooseX::Meta::Attribute::Trait::DoNotSerialize, but lowkey if you don't wanna install MooseX::Storage you can just use this instead. no cap, both work, this one's just the low-effort route. 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> β€” absolute legend, fr fr. πŸ’œ


This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.

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, legally speaking. ⭐


and that's the whole page bestie!! ✨ this was served up fresh from the User Contributed Perl Documentation collection, perl v5.34.0, dated 2022-05-23 β€” go forth and not-serialize things responsibly πŸ’–πŸ§š

πŸ“¦ where this page comes from