pub enum StatusCode {
BadRequest,
KeyBlocked,
DailyReqLimitExceeded,
DailyCharLimitExceeded,
TextTooLong,
TooManyRequests,
UnprocessableText,
InternalServerError,
LangNotSupported,
}
Expand description
A not full list of standart status code for responces
Variants§
BadRequest
KeyBlocked
DailyReqLimitExceeded
DailyCharLimitExceeded
TextTooLong
TooManyRequests
UnprocessableText
InternalServerError
LangNotSupported
Trait Implementations§
Source§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl From<StatusCode> for usize
impl From<StatusCode> for usize
Source§fn from(code: StatusCode) -> usize
fn from(code: StatusCode) -> usize
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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