thrift.codegen.idlgen

Contains <b>experimental</b> functionality for generating Thrift IDL files (.thrift) from existing D data structures, i.e. the reverse of what the Thrift compiler does.

Members

Aliases

isThriftEntity
alias isThriftEntity = Any!(isStruct, isException, isEnum, isService)

True if the passed type is a Thrift entity (struct, exception, enum, service).

Classes

ExceptionWithAMap
class ExceptionWithAMap
Undocumented in source.

Enums

Foo
enum Foo
Undocumented in source.

Interfaces

ChildSrv
interface ChildSrv
Undocumented in source.
Srv
interface Srv
Undocumented in source.

Structs

Bonk
struct Bonk
Undocumented in source.
HolyMoley
struct HolyMoley
Undocumented in source.
OneOfEach
struct OneOfEach
Undocumented in source.
WithDefaults
struct WithDefaults
Undocumented in source.
WithoutMeta
struct WithoutMeta
Undocumented in source.

Templates

enumIdlString
template enumIdlString(T)

Returns an IDL string describing the passed enum. IDL code for any type dependcies is not included.

idlString
template idlString(Roots...)

Returns an IDL string describing the passed »root« entities and all types they depend on.

serviceIdlString
template serviceIdlString(T)

Returns an IDL string describing the passed service. IDL code for any type dependcies is not included.

structIdlString
template structIdlString(T)

Returns an IDL string describing the passed struct. IDL code for any type dependcies is not included.

Meta