siryul.common

Undocumented in source.

Members

Aliases

deserializationMethod
alias deserializationMethod(T) = getSymbolsByUDA!(T, DeserializationMethod)[0]
Undocumented in source.
isSimpleList
alias isSimpleList = templateAnd!(isIterable, templateNot!isSomeString, templateNot!isAssociativeArray)
Undocumented in source.
serializationMethod
alias serializationMethod(T) = getSymbolsByUDA!(T, SerializationMethod)[0]
Undocumented in source.

Classes

DeserializeException
class DeserializeException

Thrown when a deserialization error occurs

SerializeException
class SerializeException

Thrown when a serialization error occurs

SiryulException
class SiryulException

Thrown when an error occurs

Enums

AsBinary
enum AsBinary

Write field as binary (NYI)

AsString
enum AsString

Write field as string

DeSiryulize
enum DeSiryulize

Deserialization options

DeserializationMethod
enum DeserializationMethod

Marks a method for use in deserialization

IgnoreErrors
enum IgnoreErrors

Errors are ignored; value will be .init

Optional
enum Optional

Used when nonpresence of field is not an error. The field will be set to its .init value. If being able to detect nonpresence is desired, ensure that the default value cannot appear in the data or use a Nullable type.

Required
enum Required

Used when nonpresence of field is an error.

SerializationMethod
enum SerializationMethod

Marks a method for use in serialization

Siryulize
enum Siryulize

Serialization options

hasDeserializationMethod
eponymoustemplate hasDeserializationMethod(T)
Undocumented in source.
hasSerializationMethod
eponymoustemplate hasSerializationMethod(T)
Undocumented in source.
isNullable
eponymoustemplate isNullable(T)
Undocumented in source.

Structs

CustomParser
struct CustomParser

Use custom parser functions for a given field.

SiryulizeAs
struct SiryulizeAs

(De)serialize field using a different name.

TimeTest
struct TimeTest
Undocumented in source.
TimeTest2
struct TimeTest2
Undocumented in source.

Templates

getConvertFromFunc
template getConvertFromFunc(T, alias member)
Undocumented in source.
getConvertToFunc
template getConvertToFunc(T, alias member)
Undocumented in source.
getMemberName
template getMemberName(alias T)
Undocumented in source.
hasConvertToFunc
template hasConvertToFunc(T, alias member)
Undocumented in source.
isStaticString
template isStaticString(T)
Undocumented in source.
isTimeType
template isTimeType(T)
Undocumented in source.

Meta