pub enum DpTranError {
DeeplApiError(DeeplAPIError),
InvalidLanguageCode,
ApiKeyIsNotSet,
NoTargetLanguageSpecified,
CouldNotGetInputText,
GlossaryLangPairNotSupported,
}Expand description
Errors that can occur in this library.
DeeplApiError: DeepL API error
InvalidLanguageCode: Invalid language code
ApiKeyIsNotSet: API key is not set
NoTargetLanguageSpecified: No target language specified
CouldNotGetInputText: Could not get input text
Variants§
DeeplApiError(DeeplAPIError)
InvalidLanguageCode
ApiKeyIsNotSet
NoTargetLanguageSpecified
CouldNotGetInputText
GlossaryLangPairNotSupported
Trait Implementations§
Source§impl Debug for DpTranError
impl Debug for DpTranError
Source§impl PartialEq for DpTranError
impl PartialEq for DpTranError
impl StructuralPartialEq for DpTranError
Auto Trait Implementations§
impl Freeze for DpTranError
impl RefUnwindSafe for DpTranError
impl Send for DpTranError
impl Sync for DpTranError
impl Unpin for DpTranError
impl UnsafeUnpin for DpTranError
impl UnwindSafe for DpTranError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more