pub struct Block {Show 25 fields
pub id: EntityId,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub list: Option<EntityId>,
pub document_position: i64,
pub fmt_alignment: Option<Alignment>,
pub fmt_top_margin: Option<i64>,
pub fmt_bottom_margin: Option<i64>,
pub fmt_left_margin: Option<i64>,
pub fmt_right_margin: Option<i64>,
pub fmt_heading_level: Option<i64>,
pub fmt_indent: Option<i64>,
pub fmt_text_indent: Option<i64>,
pub fmt_marker: Option<MarkerType>,
pub fmt_tab_positions: Vec<i64>,
pub fmt_line_height: Option<i64>,
pub fmt_non_breakable_lines: Option<bool>,
pub fmt_page_break_before: Option<bool>,
pub fmt_front_matter: Option<bool>,
pub fmt_direction: Option<TextDirection>,
pub fmt_background_color: Option<String>,
pub fmt_is_code_block: Option<bool>,
pub fmt_code_language: Option<String>,
pub fmt_hyphenate: Option<bool>,
pub fmt_language: Option<String>,
}Fields§
§id: EntityId§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§list: Option<EntityId>§document_position: i64§fmt_alignment: Option<Alignment>§fmt_top_margin: Option<i64>§fmt_bottom_margin: Option<i64>§fmt_left_margin: Option<i64>§fmt_right_margin: Option<i64>§fmt_heading_level: Option<i64>§fmt_indent: Option<i64>§fmt_text_indent: Option<i64>§fmt_marker: Option<MarkerType>§fmt_tab_positions: Vec<i64>§fmt_line_height: Option<i64>§fmt_non_breakable_lines: Option<bool>§fmt_page_break_before: Option<bool>Start this block on a new page. Its neighbour above keeps a block’s lines
together; this one puts a page boundary in front of it. Only the paginated
formats can honour it literally — DOCX w:pageBreakBefore, Typst #pagebreak,
LaTeX \newpage, CSS break-before — and the flowing ones render it as best
they can or not at all. None means “wherever the text falls”.
fmt_front_matter: Option<bool>This block belongs to the front matter the document opens with: a cover, a title
page. Only the leading run of such blocks is front matter; a flagged block after
the first body block is body like any other. The paginated writers that carry a
running header (DOCX, ODT) give the front matter’s pages neither that header nor a
page number, and start the body on a page of its own numbered 1. The flowing formats
have no page furniture to withhold and ignore it. None means body.
fmt_direction: Option<TextDirection>§fmt_background_color: Option<String>§fmt_is_code_block: Option<bool>§fmt_code_language: Option<String>§fmt_hyphenate: Option<bool>Enable automatic + soft-hyphen hyphenation for this block.
fmt_language: Option<String>Natural language of this block as an ISO 639-1 code (e.g. “en”, “fr”); drives hyphenation dictionary selection.