FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CatalogGateway

    struct · ferroui-protranslate-studio · v0.5.0

    struct CatalogGateway
    

    Stateless gateway shared by file, clipboard and web hosts.

    View source

    Members

    import_from_storage

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

    Source

    export_to_storage

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

    Source

    import

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

    Source

    export

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

    Source

    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.