(method: RpcMethod, ctx: RustCodegenCtx)
| 1325 | } |
| 1326 | |
| 1327 | function rustResultTypeName(method: RpcMethod, ctx: RustCodegenCtx): string { |
| 1328 | if (method.result?.$ref && parseExternalSchemaRef(method.result.$ref)) { |
| 1329 | recordExternalRustTypeRef(method.result.$ref, ctx); |
| 1330 | return rustRefTypeName(method.result.$ref); |
| 1331 | } |
| 1332 | return getRpcSchemaTypeName( |
| 1333 | method.result, |
| 1334 | `${toPascalCase(method.rpcMethod)}Result`, |
| 1335 | ); |
| 1336 | } |
| 1337 | |
| 1338 | function asGeneratedObjectSchema( |
| 1339 | schema: JSONSchema7, |
no test coverage detected
searching dependent graphs…