pub enum WebullError {
AuthenticationError(String),
ApiError {
code: String,
message: String,
},
RateLimitExceeded,
NetworkError(Error),
InvalidRequest(String),
SerializationError(Error),
MfaRequired,
Unauthorized,
Unknown(String),
}
Expand description
Errors that can occur when interacting with the Webull API.
Variants§
AuthenticationError(String)
Authentication error
ApiError
API error with code and message
RateLimitExceeded
Rate limit exceeded
NetworkError(Error)
Network error
InvalidRequest(String)
Invalid request
SerializationError(Error)
Serialization error
MfaRequired
MFA required
Unauthorized
Unknown(String)
Unknown error
Trait Implementations§
Source§impl Debug for WebullError
impl Debug for WebullError
Source§impl Display for WebullError
impl Display for WebullError
Source§impl Error for WebullError
impl Error for WebullError
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 From<Error> for WebullError
impl From<Error> for WebullError
Auto Trait Implementations§
impl Freeze for WebullError
impl !RefUnwindSafe for WebullError
impl Send for WebullError
impl Sync for WebullError
impl Unpin for WebullError
impl !UnwindSafe for WebullError
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