All notable changes will be documented in this file. This project adheres to semantic versioning.
- Derive
serde::Serialize
for typesLanguage
,SplitSentences
,Formality
,TagHandling
- Derive
Debug
,Clone
for typesTextOptions
,DocumentOptions
- Simplify text form building by setting a json body
- Renamed
Language
variants to respect case convention - Changed fields
non_splitting_tags
,splitting_tags
,ignore_tags
ofTextOptions
to have typeVec<String>
. - Added method
text
toTextOptions
for setting the text to translate.DeepL::translate
function no longer takes a text parameter.
- Renamed DeepL method
glossary_del
toglossary_delete
.
- Fixed a bug while parsing a server error.
- Improved crate documentation
- The signature of
DeepL::new
has changed to expect a string slice&str
as its only parameter instead of an owned String. glossary_entries
now returnsResult<HashMap<String, String>>
instead ofResult<String>
, providing a more intuitive container for glossary entries.Error::Request
has been renamed toError::InvalidRequest
.DocumentStatus
now implements the functionis_done
. Previouslyis_done
was called on an instance ofDocState
. This is no longer the case.
- Adds two new methods,
client
andset_app_info
on theDeepL
type which allow setting a user-definedblocking::Client
and app-info string respectively. - The following glossary types can be serialized:
GlossariesResult
,GlossaryLanguagePairsResult
, andGlossaryLanguagePair
- Adds ability to construct a Formality from a string. (impl FromStr)
- Allow displaying
Document
,LanguageInfo
, andGlossary
. (derive serde::Serialize)
- Fixes an issue where sending many text parameters for translation caused an existing param to be overwritten.
- Publish deeprl on crates.io