uninode.serialization

The module contains serialization functions

Public Imports

uninode.node
public import uninode.node : UniNode;

Members

Aliases

enforceDeserialization
alias enforceDeserialization = enforce!UniNodeDeserializationException
Undocumented in source.

Classes

UniNodeDeserializationException
class UniNodeDeserializationException

Thrown on UniNode deserialization errors

Enums

DeserializationMethod
enum DeserializationMethod

Marks a method for use in deserialization

SerializationMethod
enum SerializationMethod

Marks a method for use in serialization

Functions

asArray
AsArrayAttribute asArray()

Attribute for representing a struct/class as an array instead of an object.

asString
AsStringAttribute asString()

Attribute for forcing serialization as string.

byName
ByNameAttribyte byName()

Attribute for forcing serialization of enum fields by name instead of by value.

deserializeUniNode
T deserializeUniNode(UniNode src)

Deserialize object form UniNode

ignore
IgnoreAttribute ignore()

Attribute for marking non-serialized fields.

masked
MaskedAttribute masked()

Attribute marking a field as masked during serialization.

name
NameAttribute name(string name)

Attribute for overriding the field name during (de-)serialization.

optional
OptionalAttribute optional()

Attribute for marking non-serialized fields.

serializeToUniNode
UniNode serializeToUniNode(T value)

Serialize object to UniNode

Structs

UniNodeSerializer
struct UniNodeSerializer

Default UniNode serializer

Templates

deserialize
template deserialize(Node, Serializer : UniNodeSerializer)

Deserializes a value with Serializer

serialize
template serialize(Node, Serializer : UniNodeSerializer)

Serializes a value with Serializer

Meta

Date

Date: 2020-01-12

License

Subject to the terms of the BSD 3-Clause License, as written in the included LICENSE.md file.

Authors

<m.galanin@milofon.pro> Maksim Galanin