pub struct CfRating {
pub icon: Icon,
pub count: u32,
pub max: u32,
pub color: Color,
pub show_value: bool,
}Expand description
Rating decoration for a cell: show count copies of icon out of max possible.
Fields§
§icon: IconIcon to show for each rating point (e.g. star, circle, etc.).
count: u32Number of filled icons to show (1..=max).
max: u32Maximum number of icons in the scale (3, 4, or 5).
color: Color§show_value: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for CfRating
impl<'de> Deserialize<'de> for CfRating
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CfRating
impl RefUnwindSafe for CfRating
impl Send for CfRating
impl Sync for CfRating
impl Unpin for CfRating
impl UnsafeUnpin for CfRating
impl UnwindSafe for CfRating
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