pub enum BatchDetectDominantLanguageError {
BatchSizeLimitExceeded(String),
InternalServer(String),
InvalidRequest(String),
TextSizeLimitExceeded(String),
}Expand description
Errors returned by BatchDetectDominantLanguage
Variants§
BatchSizeLimitExceeded(String)
The number of documents in the request exceeds the limit of 25. Try your request again with fewer documents.
InternalServer(String)
An internal server error occurred. Retry your request.
InvalidRequest(String)
The request is invalid.
TextSizeLimitExceeded(String)
The size of the input text exceeds the limit. Use a smaller document.
Implementations§
Trait Implementations§
Source§impl Error for BatchDetectDominantLanguageError
impl Error for BatchDetectDominantLanguageError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for BatchDetectDominantLanguageError
impl PartialEq for BatchDetectDominantLanguageError
Source§fn eq(&self, other: &BatchDetectDominantLanguageError) -> bool
fn eq(&self, other: &BatchDetectDominantLanguageError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchDetectDominantLanguageError
Auto Trait Implementations§
impl Freeze for BatchDetectDominantLanguageError
impl RefUnwindSafe for BatchDetectDominantLanguageError
impl Send for BatchDetectDominantLanguageError
impl Sync for BatchDetectDominantLanguageError
impl Unpin for BatchDetectDominantLanguageError
impl UnwindSafe for BatchDetectDominantLanguageError
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