pub struct Card {
pub title: String,
pub children: Vec<String>,
pub padding: String,
pub background_color: String,
pub border_color: String,
}Fields§
§title: String§children: Vec<String>§padding: String§background_color: String§border_color: StringImplementations§
Source§impl Card
impl Card
pub fn new() -> Card
pub fn title(self, title: String) -> Card
pub fn child(self, child: String) -> Card
pub fn children(self, children: Vec<String>) -> Card
pub fn padding(self, padding: String) -> Card
pub fn background_color(self, color: String) -> Card
pub fn border_color(self, color: String) -> Card
Trait Implementations§
impl Eq for Card
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin 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