# TranslationFormatDiagnostic

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-formats/struct-translationformatdiagnostic/

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

```rust
struct TranslationFormatDiagnostic
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L211)

## Members

- [`severity`](#struct_field-severity)
- [`code`](#struct_field-code)
- [`message`](#struct_field-message)
- [`key`](#struct_field-key)
- [`culture`](#struct_field-culture)
- [`new`](#function-new)

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

### severity

```rust
severity: Severity
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L212)

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

### code

```rust
code: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L213)

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

### message

```rust
message: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L214)

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

### key

```rust
key: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L215)

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

### culture

```rust
culture: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L216)

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

### new

```rust
fn new(severity: Severity, code: &str, message: impl Into<String>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Formats/model.rs#L220)

## 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`
- `Eq`
- `StructuralPartialEq`
- `PartialEq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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