pub enum AlpacaError {
Http(String),
Json(String),
Api(String),
Auth(String),
Config(String),
}
Expand description
Error types for the Alpaca API client
Variants§
Http(String)
HTTP request errors
Json(String)
JSON parsing errors
Api(String)
API errors returned by Alpaca
Auth(String)
Authentication errors
Config(String)
Invalid configuration
Trait Implementations§
Source§impl Debug for AlpacaError
impl Debug for AlpacaError
Source§impl Display for AlpacaError
impl Display for AlpacaError
Source§impl Error for AlpacaError
impl Error for AlpacaError
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()
Auto Trait Implementations§
impl Freeze for AlpacaError
impl RefUnwindSafe for AlpacaError
impl Send for AlpacaError
impl Sync for AlpacaError
impl Unpin for AlpacaError
impl UnwindSafe for AlpacaError
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