pub struct ItemStyle { /* private fields */ }
Implementations§
Source§impl ItemStyle
impl ItemStyle
pub fn new() -> Self
pub fn color<C: Into<Color>>(self, color: C) -> Self
pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self
pub fn border_width<F: Into<i64>>(self, border_width: F) -> Self
pub fn border_radius<F: Into<i64>>(self, border_radius: F) -> Self
pub fn border_type(self, border_type: BorderType) -> Self
pub fn opacity<F: Into<i64>>(self, opacity: F) -> Self
pub fn shadow_color<C: Into<Color>>(self, shadow_color: C) -> Self
pub fn shadow_blur<F: Into<i64>>(self, shadow_blur: F) -> Self
pub fn shadow_offset_x<F: Into<i64>>(self, shadow_offset_x: F) -> Self
pub fn shadow_offset_y<F: Into<i64>>(self, shadow_offset_y: F) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemStyle
impl<'de> Deserialize<'de> for ItemStyle
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 ItemStyle
impl RefUnwindSafe for ItemStyle
impl Send for ItemStyle
impl Sync for ItemStyle
impl Unpin for ItemStyle
impl UnwindSafe for ItemStyle
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,
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