Public declaration syntax from harness-sdk/src/plugins/draw_command.rs Original source SHA-256: 2c7bbe8f834a0320db5f08f3a7b7f73a928e13f741305bbcc999d5d7fb2cd05b Function bodies and constant values are omitted. This is not the complete implementation. Source line 14 #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(tag = "type", rename_all = "snake_case")] pub enum DrawCommand { /// Draw text at a position. Text { /// X coordinate (column). x: u16, /// Y coordinate (row). y: u16, /// Text content. text: String, /// Foreground color as RGB hex (e.g., "#ff0000"). fg: Option, /// Background color as RGB hex. bg: Option, /// Whether to render as bold. bold: bool, }, /// Fill a rectangle with a character. Fill { /// X coordinate. x: u16, /// Y coordinate. y: u16, /// Width. width: u16, /// Height. height: u16, /// Fill character. char: char, /// Foreground color. fg: Option, /// Background color. bg: Option, }, /// Draw a horizontal line. HLine { /// X coordinate. x: u16, /// Y coordinate. y: u16, /// Length. length: u16, /// Character to use. char: char, }, /// Draw a vertical line. VLine { /// X coordinate. x: u16, /// Y coordinate. y: u16, /// Length. length: u16, /// Character to use. char: char, }, /// Clear a rectangular area. Clear { /// X coordinate. x: u16, /// Y coordinate. y: u16, /// Width. width: u16, /// Height. height: u16, }, } Source line 98 #[must_use] pub fn parse_hex_color(hex: &str) -> Option<(u8, u8, u8)>;