# MeasurementSystemProfile

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-core/struct-measurementsystemprofile/

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

```rust
struct MeasurementSystemProfile
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L89)

## Members

- [`system`](#struct_field-system)
- [`length_unit`](#struct_field-length_unit)
- [`temperature_unit`](#struct_field-temperature_unit)
- [`mass_unit`](#struct_field-mass_unit)
- [`volume_unit`](#struct_field-volume_unit)
- [`speed_unit`](#struct_field-speed_unit)
- [`for_system`](#function-for_system)
- [`unit_for`](#function-unit_for)

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

### system

```rust
system: MeasurementSystem
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L90)

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

### length_unit

```rust
length_unit: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L91)

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

### temperature_unit

```rust
temperature_unit: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L92)

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

### mass_unit

```rust
mass_unit: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L93)

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

### volume_unit

```rust
volume_unit: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L94)

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

### speed_unit

```rust
speed_unit: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L95)

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

### for_system

```rust
fn for_system(system: MeasurementSystem) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L98)

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

### unit_for

```rust
fn unit_for(self: &Self, category: MeasurementUnitCategory) -> Result<MeasurementUnit, TranslationError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/measurement.rs#L114)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Debug`
- `Clone`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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