# CatalogGateway

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

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

```rust
struct CatalogGateway
```

Stateless gateway shared by file, clipboard and web hosts.

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

## Members

- [`import_from_storage`](#function-import_from_storage)
- [`export_to_storage`](#function-export_to_storage)
- [`import`](#function-import)
- [`export`](#function-export)

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

### import_from_storage

```rust
fn import_from_storage(storage: &dyn crate::StudioStorage, path: &str, format: TranslationFileFormat, options: &TranslationFormatOptions, target_culture: &str) -> Result<ImportedCatalog, StudioError>
```



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

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

### export_to_storage

```rust
fn export_to_storage(storage: &dyn crate::StudioStorage, path: &str, catalog: &TranslationCatalog, format: TranslationFileFormat, options: &TranslationFormatOptions) -> Result<TranslationExportResult, StudioError>
```



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

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

### import

```rust
fn import(content: &str, format: TranslationFileFormat, options: &TranslationFormatOptions, file_name: &str, target_culture: &str) -> Result<ImportedCatalog, StudioError>
```



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

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

### export

```rust
fn export(catalog: &TranslationCatalog, format: TranslationFileFormat, options: &TranslationFormatOptions) -> Result<TranslationExportResult, StudioError>
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

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