pub struct RatingResponse {
pub response: Response,
pub changed: Option<u8>,
pub preview: Option<u8>,
pub hovered: bool,
}Expand description
What RatingStars returns.
Fields§
§response: ResponseThe stars’ row as a whole.
changed: Option<u8>The value the user asked for, if any (never the current one).
preview: Option<u8>The value a click would give, while the pointer is on the stars.
hovered: boolWhether the pointer is on the stars.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RatingResponse
impl !RefUnwindSafe for RatingResponse
impl Send for RatingResponse
impl Sync for RatingResponse
impl Unpin for RatingResponse
impl UnsafeUnpin for RatingResponse
impl !UnwindSafe for RatingResponse
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> 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