# Solution

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-project/struct-solution/

**struct** · [`ferroui-designer-project`](/docs/0.5.0/api/ferroui-designer-project/) · v0.5.0

```rust
struct Solution
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L36)

## Members

- [`format_version`](#struct_field-format_version)
- [`root`](#struct_field-root)
- [`projects`](#struct_field-projects)
- [`discover`](#function-discover)
- [`from_cargo_metadata`](#function-from_cargo_metadata)
- [`refresh`](#function-refresh)
- [`save_descriptor`](#function-save_descriptor)
- [`load_descriptor`](#function-load_descriptor)

<a id="struct_field-format_version"></a>

### format_version

```rust
format_version: u32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L37)

<a id="struct_field-root"></a>

### root

```rust
root: std::path::PathBuf
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L38)

<a id="struct_field-projects"></a>

### projects

```rust
projects: Vec<ProjectDescriptor>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L39)

<a id="function-discover"></a>

### discover

```rust
fn discover(path: impl AsRef<Path>) -> Result<Self>
```

Cargo is used as the manifest authority, including workspace membership and target paths.
--locked/--offline prevent discovery from changing the dependency graph or downloading code.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L44)

<a id="function-from_cargo_metadata"></a>

### from_cargo_metadata

```rust
fn from_cargo_metadata(metadata: &serde_json::Value) -> Result<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L97)

<a id="function-refresh"></a>

### refresh

```rust
fn refresh(self: &mut Self) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L175)

<a id="function-save_descriptor"></a>

### save_descriptor

```rust
fn save_descriptor(self: &Self, path: impl AsRef<Path>) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L186)

<a id="function-load_descriptor"></a>

### load_descriptor

```rust
fn load_descriptor(path: impl AsRef<Path>) -> Result<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Project/discovery.rs#L189)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Serialize`
- `Deserialize<'de>`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
