pub struct Card {
pub icon: Option<String>,
pub title: String,
pub icon_size: f32,
pub children: Vec<Widget>,
pub padding: Option<f32>,
}Expand description
A Widget::Card: a raised card, its icon and title on the first
line, then its children.
Fields§
§icon: Option<String>§title: String§icon_size: f32The icon’s size in points.
children: Vec<Widget>§padding: Option<f32>The room inside its edge in points, in place of the card’s own.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
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
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Forget for Card
impl Freeze for Card
impl Move for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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