MCPcopy Create free account
hub / github.com/hashintel/hash / from_specta

Method from_specta

libs/@local/codegen/src/definitions/struct.rs:11–18  ·  view source on GitHub ↗
(
        struct_type: &datatype::Struct,
        type_collection: &specta::TypeCollection,
    )

Source from the content-addressed store, hash-verified

9
10impl Struct {
11 pub(crate) fn from_specta(
12 struct_type: &datatype::Struct,
13 type_collection: &specta::TypeCollection,
14 ) -> Self {
15 Self {
16 fields: Fields::from_specta(struct_type.fields(), type_collection),
17 }
18 }
19}

Callers

nothing calls this directly

Calls 1

fieldsMethod · 0.80

Tested by

no test coverage detected