pub enum ResultError {
Request {
title: String,
detail: String,
},
IncorrectSymbol {
symbols: Vec<String>,
},
IncompletePriceUpdate {
fails: Vec<String>,
succs: Vec<String>,
},
IncompleteIntradayUpdate {
fails: HashMap<String, Vec<String>>,
succs: HashMap<String, Vec<String>>,
},
}Expand description
Domain errors that mirror the JS result.error object shapes.
These are not fatal Result::Err values; they are returned inside
the successful result so callers can inspect partial outcomes.
Variants§
Request
code 1 — a server/request failure occurred.
IncorrectSymbol
code 2 — one or more requested symbols were not found.
IncompletePriceUpdate
code 3 — prices for some symbols failed to update.
IncompleteIntradayUpdate
code 4 — intraday data for some symbols failed to update.
Implementations§
Trait Implementations§
Source§impl Clone for ResultError
impl Clone for ResultError
Source§fn clone(&self) -> ResultError
fn clone(&self) -> ResultError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResultError
impl RefUnwindSafe for ResultError
impl Send for ResultError
impl Sync for ResultError
impl Unpin for ResultError
impl UnsafeUnpin for ResultError
impl UnwindSafe for ResultError
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