pub enum TvscreenerError {
HttpStatus {
status: u16,
body: String,
},
Timeout,
Network(Error),
Json(String),
InvalidRequest(String),
InvalidFieldName(String),
}Expand description
Errors produced by payload building, HTTP, or response parsing.
Wraps network / JSON failures from reqwest / serde_json.
Variants§
HttpStatus
TradingView (or proxy) returned a non-success HTTP status.
Fields
Timeout
Request timed out.
Network(Error)
Underlying network / transport failure.
Json(String)
Response body was not valid JSON or did not match the expected shape.
InvalidRequest(String)
Caller built an invalid filter, range, or column set.
InvalidFieldName(String)
Filter left is not in the allowed field set for this screener.
Trait Implementations§
Source§impl Debug for TvscreenerError
impl Debug for TvscreenerError
Source§impl Display for TvscreenerError
impl Display for TvscreenerError
Source§impl Error for TvscreenerError
impl Error for TvscreenerError
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 TvscreenerError
impl From<Error> for TvscreenerError
Auto Trait Implementations§
impl !RefUnwindSafe for TvscreenerError
impl !UnwindSafe for TvscreenerError
impl Freeze for TvscreenerError
impl Send for TvscreenerError
impl Sync for TvscreenerError
impl Unpin for TvscreenerError
impl UnsafeUnpin for TvscreenerError
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more