Instance Propertygrpc-swift 2.0.0GRPCCodeGen
client
Whether or not client code should be generated.
var client: Bool
Whether or not client code should be generated.
var client: Bool
import GRPCCodeGen
struct Config
User options for the CodeGeneration.
struct CodeGenerator
Generates SourceFile
objects containing generated code for the RPCs represented in a CodeGenerationRequest
object.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(accessLevel: AccessLevel, accessLevelOnImports: Bool, client: Bool, server: Bool, indentation: Int = 4)
Creates a new configuration.
var accessLevel: AccessLevel
The access level the generated code will have.
var accessLevelOnImports: Bool
Whether imports have explicit access levels.
var indentation: Int
The indentation of the generated code as the number of spaces.
var server: Bool
Whether or not server code should be generated.
struct AccessLevel
The possible access levels for the generated code.