struct

Athena::Serializer::PropertyMetadata(IvarType, ValueType)

Inherits Athena::Serializer::PropertyMetadataBase < Struct < Value < Object

Stores metadata related to a specific property.

This includes its name (internal and external), value, versions/groups, and any aliases.

Constructors

new(name : String, external_name : String, annotation_configurations : ADI::AnnotationConfigurations, value : ValueType = nil, skip_when_empty : Bool = false, groups : Enumerable(String) = ["default"], aliases : Array(String) = [] of String, since_version : SemanticVersion | Nil = nil, until_version : SemanticVersion | Nil = nil, type : IvarType.class = IvarType)
Source

Instance methods

aliases

Deserialize this property from the property's name or any name in aliases.

See ASRA::Name.

Source
annotation_configurations

Returns annotations configurations registered via ADI..configuration_annotation and applied to this property.

These configurations could then be accessed within an ASR::ExclusionStrategies::ExclusionStrategyInterface.

Source
external_name

The name that should be used for serialization/deserialization.

Source
groups

The serialization groups this property belongs to.

See ASR::ExclusionStrategies::Groups.

Source
name

The name of the property.

Source
since_version

Represents the first version this property is available.

See ASR::ExclusionStrategies::Version.

Source
since_version=(since_version : SemanticVersion | Nil)

Represents the first version this property is available.

See ASR::ExclusionStrategies::Version.

Source
skip_when_empty?

If this property should not be serialized if it is empty.

See ASRA::SkipWhenEmpty.

Source
type

The type of the property.

Source
until_version

Represents the last version this property was available.

See ASR::ExclusionStrategies::Version.

Source
until_version=(until_version : SemanticVersion | Nil)

Represents the last version this property was available.

See ASR::ExclusionStrategies::Version.

Source
value

The value of the property (when serializing).

Source