pub struct RatingBand {
pub const_name: &'static str,
pub min: f64,
pub max: f64,
pub label: &'static str,
}Expand description
Recommendation rating band (numeric recommendation scores).
Fields§
§const_name: &'static strCatalog constant name (e.g. "STRONG_BUY").
min: f64Inclusive lower bound (f64::NAN for rating::UNKNOWN).
max: f64Inclusive upper bound (f64::NAN for rating::UNKNOWN).
label: &'static strHuman label (e.g. "Strong Buy").
Implementations§
Trait Implementations§
Source§impl Clone for RatingBand
impl Clone for RatingBand
Source§fn clone(&self) -> RatingBand
fn clone(&self) -> RatingBand
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 moreimpl Copy for RatingBand
Auto Trait Implementations§
impl Freeze for RatingBand
impl RefUnwindSafe for RatingBand
impl Send for RatingBand
impl Sync for RatingBand
impl Unpin for RatingBand
impl UnsafeUnpin for RatingBand
impl UnwindSafe for RatingBand
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more