pub enum AttributionValueError {
Empty {
field: &'static str,
},
InvalidWindow(u16),
InvalidCredit(f32),
}Expand description
Error returned by attribution primitive constructors.
Variants§
Empty
The supplied value was empty after trimming whitespace.
InvalidWindow(u16)
Attribution window days must be greater than zero.
InvalidCredit(f32)
Attribution credit must be in the inclusive 0.0..=1.0 range.
Trait Implementations§
Source§impl Clone for AttributionValueError
impl Clone for AttributionValueError
Source§fn clone(&self) -> AttributionValueError
fn clone(&self) -> AttributionValueError
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 moreSource§impl Debug for AttributionValueError
impl Debug for AttributionValueError
Source§impl Display for AttributionValueError
impl Display for AttributionValueError
Source§impl Error for AttributionValueError
impl Error for AttributionValueError
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 AttributionValueError
impl PartialEq for AttributionValueError
Source§fn eq(&self, other: &AttributionValueError) -> bool
fn eq(&self, other: &AttributionValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AttributionValueError
impl StructuralPartialEq for AttributionValueError
Auto Trait Implementations§
impl Freeze for AttributionValueError
impl RefUnwindSafe for AttributionValueError
impl Send for AttributionValueError
impl Sync for AttributionValueError
impl Unpin for AttributionValueError
impl UnsafeUnpin for AttributionValueError
impl UnwindSafe for AttributionValueError
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