TPargsStruct

Represents the arguments of a Thrift method call, as pointers to the (const) parameter type to avoid copying.

There should usually be no reason to use this struct directly without the help of TClient, but it is documented publicly to help debugging in case of CTFE errors.

Consider this example:

interface Foo {
  int bar(string a, bool b);

  enum methodMeta = [
    TMethodMeta("bar", [TParamMeta("a", 1), TParamMeta("b", 2)])
  ];
}

alias TPargsStruct!(Foo, "bar") FooBarPargs;

The definition of FooBarPargs is equivalent to (ignoring the necessary metadata to assign the field IDs):

struct FooBarPargs {
  const(string)* a;
  const(bool)* b;

  void write(Protocol)(Protocol proto) const if (isTProtocol!Protocol);
}
template TPargsStruct (
Interface
string methodName
)

Meta