An enum representing the structure of a model.
```
// Load the model structure.
let modelStructure = await try MLModelStructure.load(contentsOf: modelURL)
switch modelStructure {
case .program(let program):
// Examine ML Program model.
case .neuralNetwork(let neuralNetwork):
// Examine Neural network model
case .pipeline(let pipeline)
// Examine Pipeline model
default:
// The model type is something else.
}
```
Load the model structure asynchronously given the location of its on-disk representation.
- Parameters:
- url: The location of its on-disk representation (.mlmodelc directory).