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