KrpcSerialFormat

interface KrpcSerialFormat<Format : SerialFormat, FormatBuilder : Any>(source)

KrpcSerialFormat interface defines an object which helps kRPC protocol to work with various serialization formats

Each serialization that can be used with kRPC protocol should define an object of KrpcSerialFormat

Functions

Link copied to clipboard
abstract fun FormatBuilder.applySerializersModule(serializersModule: SerializersModule)

Special extension for SerialFormat API, that allows to extend it with additional SerializersModule. Required for kRPC protocol properly to work properly with special argument types like Flows

Link copied to clipboard
abstract fun withBuilder(from: Format? = null, builderConsumer: FormatBuilder.() -> Unit): Format

Generalization of kotlinx.serialization approach to configure serial formats