# TranslationSession

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-studio/struct-translationsession/

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

```rust
struct TranslationSession
```

Versioned, complete session payload. Runtime history and credentials are separate.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L72)

## Members

- [`schema_version`](#struct_field-schema_version)
- [`session_id`](#struct_field-session_id)
- [`created_at_millis`](#struct_field-created_at_millis)
- [`last_modified_at_millis`](#struct_field-last_modified_at_millis)
- [`file_name`](#struct_field-file_name)
- [`source_format`](#struct_field-source_format)
- [`target_culture`](#struct_field-target_culture)
- [`catalog`](#struct_field-catalog)
- [`entry_status`](#struct_field-entry_status)
- [`import_diagnostics`](#struct_field-import_diagnostics)
- [`target_cultures`](#struct_field-target_cultures)
- [`revision`](#struct_field-revision)
- [`next_entry_id`](#struct_field-next_entry_id)
- [`validate`](#function-validate)
- [`to_json`](#function-to_json)
- [`from_json`](#function-from_json)

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

### schema_version

```rust
schema_version: u32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L73)

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

### session_id

```rust
session_id: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L74)

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

### created_at_millis

```rust
created_at_millis: i64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L75)

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

### last_modified_at_millis

```rust
last_modified_at_millis: i64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L76)

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

### file_name

```rust
file_name: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L77)

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

### source_format

```rust
source_format: ferroui_protranslate_formats::TranslationFileFormat
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L78)

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

### target_culture

```rust
target_culture: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L79)

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

### catalog

```rust
catalog: ferroui_protranslate_formats::TranslationCatalog
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L80)

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

### entry_status

```rust
entry_status: Vec<EntryStatus>
```

One status per catalog entry, in the same order; validated when restoring.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L82)

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

### import_diagnostics

```rust
import_diagnostics: Vec<ferroui_protranslate_formats::TranslationFormatDiagnostic>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L83)

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

### target_cultures

```rust
target_cultures: Vec<CultureChoice>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L84)

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

### revision

```rust
revision: u64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L85)

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

### next_entry_id

```rust
next_entry_id: u64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L86)

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

### validate

```rust
fn validate(self: &Self) -> Result<(), StudioError>
```



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

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

### to_json

```rust
fn to_json(self: &Self) -> Result<String, StudioError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L143)

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

### from_json

```rust
fn from_json(json: &str) -> Result<Self, StudioError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/document.rs#L147)

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