Skip to main content

Crate ferroui_protranslate_studio

Crate ferroui_protranslate_studio 

Source
Expand description

Portable catalog editing, persistence and translation assistance.

Hosts own storage locations, time, credentials, scheduling and network transport. This engine never changes global culture or starts background work implicitly.

Re-exports§

pub use ferroui_protranslate_formats as formats;

Structs§

AiBatchProgress
AiBatchResult
AiCancellationToken
AiHttpRequest
AiHttpResponse
AiModelList
AiProviderConfig
Serializable host configuration. Debug output redacts the API key.
AiTranslationManager
Stable provider ordering matches the source manager. Errors never trigger paid retries.
AiTranslationRequest
AiTranslationRequestEntry
AiTranslationResult
AiTranslationResultEntry
AutoSaveScheduler
Host-driven scheduling: call tick from a UI timer or an executor. No worker threads borrow a document, and failed saves remain due for the next tick.
BackupMetadata
CatalogGateway
Stateless gateway shared by file, clipboard and web hosts.
CultureChoice
EntryFilter
EntryId
Stable identity independent of a record’s key, culture, position or duplicate status.
EntryStatus
FileStudioStorage
Explicit host directory; no application-data discovery or global state.
FormatHelper
FormatPreviewValues
FormatSuggestion
ImportedCatalog
A successful import retains the complete normalized document and diagnostics.
MemoryStudioStorage
Placeholder
PlaceholderDiagnostic
ReviewMetrics
SaveOutcome
SessionService
Session, recovery and backup storage share the same explicit host boundary.
SettingsEditor
Editing settings is transactional: cancelling discards the draft, and a failed save keeps it available without changing the original configuration.
SettingsLoad
SettingsService
StorageEntry
StudioDocument
An owned document; hosts decide how to expose notifications and selection.
StudioPaths
Names inside a storage root, supplied once by the host.
StudioSettings
TranslationCoverage
TranslationPlan
Captured before awaiting transport. Wire keys are stable IDs, so duplicate catalog keys and punctuation are unambiguous in provider responses.
TranslationSession
Versioned, complete session payload. Runtime history and credentials are separate.
TranslationSuggestion

Enums§

AiHttpMethod
AiModelListSource
AiProvider
BuilderFormatType
CredentialPersistence
FormatSyntax
StudioError
TranslationReviewState

Constants§

DEFAULT_HISTORY_LIMIT
SESSION_SCHEMA_VERSION

Traits§

AiTransport
The host chooses HTTP implementation, authentication storage, timeout and scheduling.
StudioStorage
Relative paths are scoped by the host’s storage instance. Writes are atomic: errors must leave the old destination intact. Missing files are Ok(None).

Functions§

autocomplete
normalized_placeholders
placeholders
Recognize source placeholders without evaluating them. Byte ranges support insertion/highlighting; escaped composite braces and printf %% are literals.
simulate_format
Composite messages execute the real formatter. Other syntaxes are deliberate editor simulations using supplied sample values, not target runtime engines.
source_placeholders
validate_placeholders

Type Aliases§

AiFuture
Local futures also support browser transports that are not Send.