pub enum ParseCandleBorderError {
InvalidDateRange {
begin: NaiveDateTime,
end: NaiveDateTime,
},
InvalidInterval(ParseCandleIntervalError),
NegativeBoardGroupId(i64),
BoardGroupIdOutOfRange(i64),
}Expand description
Ошибки построения CandleBorder.
Variants§
InvalidDateRange
Границы диапазона заданы в неверном порядке.
Fields
§
begin: NaiveDateTimeНачало доступного диапазона.
§
end: NaiveDateTimeКонец доступного диапазона.
InvalidInterval(ParseCandleIntervalError)
Некорректный код интервала.
NegativeBoardGroupId(i64)
board_group_id отрицательный.
BoardGroupIdOutOfRange(i64)
board_group_id не помещается в u32.
Trait Implementations§
Source§impl Clone for ParseCandleBorderError
impl Clone for ParseCandleBorderError
Source§fn clone(&self) -> ParseCandleBorderError
fn clone(&self) -> ParseCandleBorderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseCandleBorderError
impl Debug for ParseCandleBorderError
Source§impl Display for ParseCandleBorderError
impl Display for ParseCandleBorderError
Source§impl Error for ParseCandleBorderError
impl Error for ParseCandleBorderError
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<ParseCandleIntervalError> for ParseCandleBorderError
impl From<ParseCandleIntervalError> for ParseCandleBorderError
Source§fn from(source: ParseCandleIntervalError) -> Self
fn from(source: ParseCandleIntervalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseCandleBorderError
impl PartialEq for ParseCandleBorderError
impl Eq for ParseCandleBorderError
impl StructuralPartialEq for ParseCandleBorderError
Auto Trait Implementations§
impl Freeze for ParseCandleBorderError
impl RefUnwindSafe for ParseCandleBorderError
impl Send for ParseCandleBorderError
impl Sync for ParseCandleBorderError
impl Unpin for ParseCandleBorderError
impl UnsafeUnpin for ParseCandleBorderError
impl UnwindSafe for ParseCandleBorderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.