fn parse_alignment(value: Option<&Value>) -> Option<TextAlignment>Expand description
Parses text alignment from TOML configuration.
Takes an optional TOML value containing the alignment string specification. Returns the corresponding TextAlignment enum value if parsing succeeds, or None if the alignment value is missing from the configuration.