#[non_exhaustive]pub enum DomainError {
InvalidPeriodFormat {
format: String,
},
InvalidExchangeValue {
value: String,
},
InvalidIsin {
value: String,
},
InvalidFigi {
value: String,
},
InvalidSymbol {
value: String,
},
}Expand description
Errors produced by domain models.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPeriodFormat
Invalid period format provided for parsing.
InvalidExchangeValue
Invalid exchange token encountered while parsing.
InvalidIsin
Invalid ISIN encountered while parsing or validating.
InvalidFigi
Invalid FIGI encountered while parsing or validating.
InvalidSymbol
Invalid symbol encountered while parsing or validating.
Trait Implementations§
Source§impl Clone for DomainError
impl Clone for DomainError
Source§fn clone(&self) -> DomainError
fn clone(&self) -> DomainError
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 DomainError
impl Debug for DomainError
Source§impl Display for DomainError
impl Display for DomainError
Source§impl Error for DomainError
impl Error for DomainError
1.30.0 · 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 PartialEq for DomainError
impl PartialEq for DomainError
impl Eq for DomainError
impl StructuralPartialEq for DomainError
Auto Trait Implementations§
impl Freeze for DomainError
impl RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl UnwindSafe for DomainError
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