pub struct TextLine {
pub align: TextAlign,
pub bold: bool,
pub fsize: u8,
pub text: String,
}Expand description
A single line of header or footer text.
Fields§
§align: TextAlignAlignment.
bold: boolBold flag, serialised as a JSON boolean (true/false) per the spec’s field-type column
(“Boolean”). The spec’s §4.6.3 JSON example loosely writes it as the integer 1, but a
Newland N950 was verified to accept the boolean form (op 7 returned success).
fsize: u8Font size (1 through 5).
text: StringText content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextLine
impl<'de> Deserialize<'de> for TextLine
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 TextLine
impl JsonSchema for TextLine
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 TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
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