# TranslationCatalogEntry

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

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

```rust
struct TranslationCatalogEntry
```

A normalized translation. Plurals use `key.category` and retain the category separately.

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

## Members

- [`key`](#struct_field-key)
- [`culture`](#struct_field-culture)
- [`value`](#struct_field-value)
- [`source`](#struct_field-source)
- [`comment`](#struct_field-comment)
- [`context`](#struct_field-context)
- [`state`](#struct_field-state)
- [`plural_category`](#struct_field-plural_category)
- [`format`](#struct_field-format)
- [`metadata`](#struct_field-metadata)
- [`new`](#function-new)
- [`base_key`](#function-base_key)

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

### key

```rust
key: String
```



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

<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#L46)

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

### value

```rust
value: String
```



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

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

### source

```rust
source: Option<String>
```



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

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

### comment

```rust
comment: Option<String>
```



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

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

### context

```rust
context: Option<String>
```



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

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

### state

```rust
state: Option<String>
```



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

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

### plural_category

```rust
plural_category: Option<String>
```



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

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

### format

```rust
format: Option<String>
```



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

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

### metadata

```rust
metadata: std::collections::BTreeMap<String, String>
```



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

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

### new

```rust
fn new(key: impl Into<String>, culture: Option<&str>, value: impl Into<String>) -> Self
```



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

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

### base_key

```rust
fn base_key(self: &Self) -> &str
```

The plural group's key without its category suffix.

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

## 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`
- `Default`
- `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/).
