syntax = "proto3"; package tests; import "gin/proto/gin.proto"; service TestSvc { rpc CallTest(Test) returns (Result); } message Test { uint32 ip = 1 [(gin_tonic.v1.rust_type) = "std::net::Ipv4Addr"]; optional uint32 port = 2; repeated string protocols = 3; Nested nested = 4; Logging logging = 5; oneof one_of { int32 num = 6; string str = 7; } map mapping = 8; } message Nested { int32 number = 1; } enum Logging { LOGGING_UNSPECIFIED = 0; LOGGING_HUMAN = 1; LOGGING_JSON = 2; } message Result { message Error { int32 code = 1; } oneof result { int32 success = 1; Error error = 2; } }