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

Function rustArrayType

scripts/codegen/rust.ts:481–490  ·  view source on GitHub ↗
(
	schema: JSONSchema7,
	parentTypeName: string,
	ctx: RustCodegenCtx,
)

Source from the content-addressed store, hash-verified

479}
480
481function rustArrayType(
482 schema: JSONSchema7,
483 parentTypeName: string,
484 ctx: RustCodegenCtx,
485): string {
486 const items = schema.items as JSONSchema7 | undefined;
487 if (!items) return "Vec<serde_json::Value>";
488
489 return `Vec<${resolveRustType(items, parentTypeName, "item", true, ctx)}>`;
490}
491
492function rustMapValueType(
493 schema: JSONSchema7,

Callers 1

emitRustArrayAliasFunction · 0.85

Calls 1

resolveRustTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…