Struct NotTheProduct
pub struct NotTheProduct {
pub entry_point: &'static str,
pub wanted: &'static str,
pub product: &'static str,
}Expand description
A product-specific reading asked of another product: the verb, the
product it takes and the product it was given. A caller’s input, raised as
ValueError in Python, carrying this text.
Fields§
§entry_point: &'static strThe verb asked.
wanted: &'static strThe product the verb takes.
product: &'static strThe product it was given.
Trait Implementations§
§impl Clone for NotTheProduct
impl Clone for NotTheProduct
§fn clone(&self) -> NotTheProduct
fn clone(&self) -> NotTheProduct
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 more§impl Debug for NotTheProduct
impl Debug for NotTheProduct
§impl Display for NotTheProduct
impl Display for NotTheProduct
impl Eq for NotTheProduct
§impl Error for NotTheProduct
impl Error for NotTheProduct
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()
§impl From<NotTheProduct> for PricingError
impl From<NotTheProduct> for PricingError
§fn from(e: NotTheProduct) -> Self
fn from(e: NotTheProduct) -> Self
Converts to this type from the input type.
§impl From<NotTheProduct> for BondReadingError
impl From<NotTheProduct> for BondReadingError
§fn from(e: NotTheProduct) -> Self
fn from(e: NotTheProduct) -> Self
Converts to this type from the input type.
§impl PartialEq for NotTheProduct
impl PartialEq for NotTheProduct
impl StructuralPartialEq for NotTheProduct
Auto Trait Implementations§
impl Freeze for NotTheProduct
impl RefUnwindSafe for NotTheProduct
impl Send for NotTheProduct
impl Sync for NotTheProduct
impl Unpin for NotTheProduct
impl UnsafeUnpin for NotTheProduct
impl UnwindSafe for NotTheProduct
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