(
struct_type: &datatype::Struct,
type_collection: &specta::TypeCollection,
)
| 9 | |
| 10 | impl 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 | } |