diff --git a/ratatui-core/src/layout/alignment.rs b/ratatui-core/src/layout/alignment.rs index a7d52567..02947f53 100644 --- a/ratatui-core/src/layout/alignment.rs +++ b/ratatui-core/src/layout/alignment.rs @@ -19,6 +19,7 @@ pub type Alignment = HorizontalAlignment; /// /// For comprehensive layout documentation and examples, see the [`layout`](crate::layout) module. #[derive(Debug, Default, Display, EnumString, Clone, Copy, Eq, PartialEq, Hash)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub enum HorizontalAlignment { #[default] Left, @@ -33,6 +34,7 @@ pub enum HorizontalAlignment { /// /// For comprehensive layout documentation and examples, see the [`layout`](crate::layout) module. #[derive(Debug, Default, Display, EnumString, Clone, Copy, Eq, PartialEq, Hash)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub enum VerticalAlignment { #[default] Top,