{"id":16671383,"url":"https://github.com/bluefeet/moosex-types-data-serializer","last_synced_at":"2025-06-23T06:37:15.160Z","repository":{"id":2953838,"uuid":"3967806","full_name":"bluefeet/MooseX-Types-Data-Serializer","owner":"bluefeet","description":"A Data::Serializer type library for Moose.","archived":false,"fork":false,"pushed_at":"2023-06-06T16:48:46.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T00:41:48.292Z","etag":null,"topics":["cpan","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/MooseX::Types::Data::Serializer","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluefeet.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-04-09T00:05:50.000Z","updated_at":"2023-06-06T15:22:44.000Z","dependencies_parsed_at":"2023-07-05T18:18:34.747Z","dependency_job_id":null,"html_url":"https://github.com/bluefeet/MooseX-Types-Data-Serializer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bluefeet/MooseX-Types-Data-Serializer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FMooseX-Types-Data-Serializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FMooseX-Types-Data-Serializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FMooseX-Types-Data-Serializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FMooseX-Types-Data-Serializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluefeet","download_url":"https://codeload.github.com/bluefeet/MooseX-Types-Data-Serializer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FMooseX-Types-Data-Serializer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261430516,"owners_count":23157160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpan","perl5"],"created_at":"2024-10-12T11:44:17.219Z","updated_at":"2025-06-23T06:37:10.145Z","avatar_url":"https://github.com/bluefeet.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nMooseX::Types::Data::Serializer - A Data::Serializer type library for Moose.\n\n# SYNOPSIS\n\n```perl\npackage MyClass;\nuse Moose;\nuse MooseX::Types::Data::Serializer;\n\nhas serializer =\u003e (\n    is       =\u003e 'ro',\n    isa      =\u003e 'Data::Serializer',\n    required =\u003e 1,\n    coerce   =\u003e 1,\n);\n\nhas raw_serializer =\u003e (\n    is       =\u003e 'ro',\n    isa      =\u003e 'Data::Serializer::Raw',\n    required =\u003e 1,\n    coerce   =\u003e 1,\n);\n\n# String will be coerced in to a Data::Serializer object:\nMyClass-\u003enew(\n    serializer     =\u003e 'YAML',\n    raw_serializer =\u003e 'Storable',\n);\n\n# Hashref will be coerced as well:\nMyClass-\u003enew(\n    serializer =\u003e { serializer =\u003e 'YAML', digester =\u003e 'MD5' },\n    raw_serializer =\u003e { serializer =\u003e 'Storable' },\n);\n\nuse MooseX::Types::Data::Serializer qw( Serializer RawSerializer );\nmy $serializer = to_Serializer( 'YAML' );\nmy $raw_serializer = to_RawSerializer({ serializer=\u003e'Storable', digester=\u003e'MD5' });\nif (is_Serializer($serializer)) { ... }\nif (is_RawSerializer($raw_serializer)) { ... }\n```\n\n# DESCRIPTION\n\nThis module provides [Data::Serializer](https://metacpan.org/pod/Data%3A%3ASerializer) types and coercians for [Moose](https://metacpan.org/pod/Moose) attributes.\n\nTwo standard Moose types are provided; Data::Serializer and Data::Serializer::Raw.\nIn addition, two other MooseX::Types types are provided; Serializer and RawSerializer.\n\nSee the [MooseX::Types](https://metacpan.org/pod/MooseX%3A%3ATypes) documentation for details on how that works.\n\n# TYPES\n\n## Data::Serializer\n\nThis is a standard Moose type that provides coercion from a string or a hashref.  If\na string is passed then it is used for the 'serializer' argumen to Data::Serializer-\u003enew().\nIf a hashref is being coerced from then it will be de-referenced and used as the\narguments to Data::Serializer-\u003enew().\n\n## Data::Serializer::Raw\n\nThis type works just like Data::Serializer, but for the [Data::Serializer::Raw](https://metacpan.org/pod/Data%3A%3ASerializer%3A%3ARaw) module.\n\n## Serializer\n\nThis is a [MooseX::Types](https://metacpan.org/pod/MooseX%3A%3ATypes) type that works just like the Data::Serializer type.\n\n## RawSerializer\n\nJust like the Serializer type, but for Data::Serializer::Raw.\n\n# AUTHOR\n\n```\nAran Clary Deltac \u003cbluefeet@gmail.com\u003e\n```\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluefeet%2Fmoosex-types-data-serializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluefeet%2Fmoosex-types-data-serializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluefeet%2Fmoosex-types-data-serializer/lists"}