pub struct FormatMessageInput {
pub text: String,
pub font: Option<String>,
pub font_size: Option<u32>,
pub color: Option<String>,
pub background: Option<String>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underline: Option<bool>,
pub align: Option<String>,
}Fields§
§text: StringPlain text to format
font: Option<String>Font family (e.g. “Arial”, “Courier New”, “Georgia”, “monospace”)
font_size: Option<u32>Font size in px (e.g. 14, 16, 20)
color: Option<String>Text color (hex, e.g. “#FF5733” or named “red”)
background: Option<String>Background color (hex or named)
bold: Option<bool>Bold
italic: Option<bool>Italic
underline: Option<bool>Underline
align: Option<String>Text alignment: left, center, right
Trait Implementations§
Source§impl Debug for FormatMessageInput
impl Debug for FormatMessageInput
Source§impl<'de> Deserialize<'de> for FormatMessageInput
impl<'de> Deserialize<'de> for FormatMessageInput
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 JsonSchema for FormatMessageInput
impl JsonSchema for FormatMessageInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FormatMessageInput
impl RefUnwindSafe for FormatMessageInput
impl Send for FormatMessageInput
impl Sync for FormatMessageInput
impl Unpin for FormatMessageInput
impl UnsafeUnpin for FormatMessageInput
impl UnwindSafe for FormatMessageInput
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