pub struct Container {
pub alignment: Option<StylesAlignment>,
pub border: Option<StylesBorder>,
pub child: Option<Box<LenraComponent>>,
pub constraints: Option<StylesBoxConstraints>,
pub decoration: Option<StylesBoxDecoration>,
pub padding: Option<StylesPadding>,
pub type_: Value,
}Expand description
Element of type container
Fields§
§alignment: Option<StylesAlignment>§border: Option<StylesBorder>§child: Option<Box<LenraComponent>>§constraints: Option<StylesBoxConstraints>§decoration: Option<StylesBoxDecoration>§padding: Option<StylesPadding>§type_: ValueThe identifier of the component
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
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
Source§impl From<Container> for LenraComponent
impl From<Container> for LenraComponent
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin 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