MCPcopy Index your code
hub / github.com/github/copilot-sdk / rustResultTypeName

Function rustResultTypeName

scripts/codegen/rust.ts:1327–1336  ·  view source on GitHub ↗
(method: RpcMethod, ctx: RustCodegenCtx)

Source from the content-addressed store, hash-verified

1325}
1326
1327function 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
1338function asGeneratedObjectSchema(
1339 schema: JSONSchema7,

Callers 1

generateApiTypesCodeFunction · 0.85

Calls 5

parseExternalSchemaRefFunction · 0.85
rustRefTypeNameFunction · 0.85
getRpcSchemaTypeNameFunction · 0.85
toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…