pub enum CreateError {
InvalidApiKey,
ApiKeyNotFound,
HttpClient(Error),
}
Expand description
Error that can occur when creating a client
Variants§
InvalidApiKey
API key is invalid
ApiKeyNotFound
API key not found in environment
HttpClient(Error)
HTTP client creation error
Trait Implementations§
Source§impl Debug for CreateError
impl Debug for CreateError
Source§impl Display for CreateError
impl Display for CreateError
Source§impl Error for CreateError
impl Error for CreateError
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()
Auto Trait Implementations§
impl Freeze for CreateError
impl !RefUnwindSafe for CreateError
impl Send for CreateError
impl Sync for CreateError
impl Unpin for CreateError
impl !UnwindSafe for CreateError
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