pub enum FormBlockEdit {
ReplacePlainText {
text: String,
},
SetHeadingLevel {
level: u8,
},
ToggleTaskChecked {
item_ordinal: u32,
checked: bool,
},
ReplaceListItemText {
item_ordinal: u32,
text: String,
},
ReplaceCodeBlock {
language: Option<String>,
code: String,
},
ReplaceRawIsland {
text: String,
},
DeleteBlock,
ReplaceImage {
alt: String,
src: String,
},
ReplaceTableCell {
row: usize,
col: usize,
text: String,
},
AddTableRow,
ToggleInline {
kind: InlineFormat,
utf16_start: usize,
utf16_len: usize,
link_url: Option<String>,
},
}Expand description
Semantic edits a Form Mode block may request (RFC-018 §7, as amended
by the 2026-06-07 review to include ReplaceListItemText and
DeleteBlock per external design §23.11).
Variants§
ReplacePlainText
SetHeadingLevel
ToggleTaskChecked
ReplaceListItemText
ReplaceCodeBlock
ReplaceRawIsland
DeleteBlock
ReplaceImage
Replace alt text and/or path for an image block (RFC-028).
ReplaceTableCell
Edit a single cell in a simple GFM table (RFC-027).
AddTableRow
Append a new empty row to a simple table (RFC-027).
ToggleInline
Toggle inline markup around a JS-editor selection (RFC-030). Offsets are UTF-16 code units relative to the block’s content range start; Rust converts them to UTF-8 before patching.
Trait Implementations§
Source§impl Clone for FormBlockEdit
impl Clone for FormBlockEdit
Source§fn clone(&self) -> FormBlockEdit
fn clone(&self) -> FormBlockEdit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormBlockEdit
impl Debug for FormBlockEdit
Source§impl<'de> Deserialize<'de> for FormBlockEdit
impl<'de> Deserialize<'de> for FormBlockEdit
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
impl Eq for FormBlockEdit
Source§impl PartialEq for FormBlockEdit
impl PartialEq for FormBlockEdit
Source§fn eq(&self, other: &FormBlockEdit) -> bool
fn eq(&self, other: &FormBlockEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FormBlockEdit
impl Serialize for FormBlockEdit
impl StructuralPartialEq for FormBlockEdit
Auto Trait Implementations§
impl Freeze for FormBlockEdit
impl RefUnwindSafe for FormBlockEdit
impl Send for FormBlockEdit
impl Sync for FormBlockEdit
impl Unpin for FormBlockEdit
impl UnsafeUnpin for FormBlockEdit
impl UnwindSafe for FormBlockEdit
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