pub type Error = YahooError;Expand description
Type alias for Error (for consistency with common Rust patterns)
Aliased Type§
pub enum Error {
Show 13 variants
AuthenticationFailed {
context: String,
},
SymbolNotFound {
symbol: Option<String>,
context: String,
},
RateLimited {
retry_after: Option<u64>,
},
HttpError(Error),
JsonParseError(Error),
ResponseStructureError {
field: String,
context: String,
},
InvalidParameter {
param: String,
reason: String,
},
Timeout {
timeout_ms: u64,
},
ServerError {
status: u16,
context: String,
},
UnexpectedResponse(String),
InternalError(String),
ApiError(String),
RuntimeError(Error),
}Variants§
AuthenticationFailed
Authentication with Yahoo Finance failed
SymbolNotFound
The requested symbol was not found
RateLimited
Rate limit exceeded
HttpError(Error)
HTTP request error
JsonParseError(Error)
Failed to parse JSON response
ResponseStructureError
Response structure error - missing or malformed fields
InvalidParameter
Invalid parameter provided
Timeout
Network timeout
ServerError
Server error (5xx status codes)
UnexpectedResponse(String)
Unexpected response from Yahoo Finance
InternalError(String)
Internal error
ApiError(String)
API error from Yahoo Finance
RuntimeError(Error)
Tokio runtime error