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

Function rustRefTypeName

scripts/codegen/rust.ts:621–624  ·  view source on GitHub ↗
(ref: string, definitions?: DefinitionCollections)

Source from the content-addressed store, hash-verified

619// ── Type resolution ─────────────────────────────────────────────────────────
620
621function rustRefTypeName(ref: string, definitions?: DefinitionCollections): string {
622 const externalRef = parseExternalSchemaRef(ref);
623 return toPascalCase(externalRef?.definitionName ?? refTypeName(ref, definitions));
624}
625
626/**
627 * Map a JSON Schema to a Rust type string. Emits nested type definitions as

Callers 4

tryEmitRustUnionFunction · 0.85
resolveRustTypeFunction · 0.85
rustParamsTypeNameFunction · 0.85
rustResultTypeNameFunction · 0.85

Calls 3

parseExternalSchemaRefFunction · 0.85
refTypeNameFunction · 0.85
toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…