HasWithGrpcMarshaller

Available in a dev version: 0․11․0-grpc-186

How to configure

An annotation that marks type parameter that must have a WithGrpcMarshaller annotation.

Example

fun grpcMarshallerOf<@HasWithGrpcMarshaller T: Any>() { ... }

@WithGrpcMarshaller(ChatEntryMarshaller::class)
class ChatEntry(...)

grpcMarshallerOf<ChatEntry>() // OK
grpcMarshallerOf<Int>() // Error

See also