pub enum FormBlockDisplay {
Heading {
level: u8,
text: String,
level_editable: bool,
},
Paragraph {
text: String,
},
List {
ordered: bool,
items: Vec<FormListItem>,
},
Blockquote {
text: String,
},
Code {
language: Option<String>,
code: String,
},
HorizontalRule,
Image {
alt: String,
src: String,
},
Table {
headers: Vec<String>,
rows: Vec<Vec<String>>,
col_count: usize,
},
RawIsland {
island_type: RawIslandType,
label_key: String,
text: String,
editable: bool,
},
}Expand description
Render-ready content for each supported block type.
Variants§
Heading
Fields
Paragraph
List
Blockquote
Code
HorizontalRule
Image
Image block (RFC-028): preview card with editable alt text and path.
Table
Simple GFM table: all cells are plain text (RFC-027).
Fields
RawIsland
Trait Implementations§
Source§impl Clone for FormBlockDisplay
impl Clone for FormBlockDisplay
Source§fn clone(&self) -> FormBlockDisplay
fn clone(&self) -> FormBlockDisplay
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 FormBlockDisplay
impl Debug for FormBlockDisplay
Source§impl<'de> Deserialize<'de> for FormBlockDisplay
impl<'de> Deserialize<'de> for FormBlockDisplay
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 FormBlockDisplay
Source§impl PartialEq for FormBlockDisplay
impl PartialEq for FormBlockDisplay
Source§fn eq(&self, other: &FormBlockDisplay) -> bool
fn eq(&self, other: &FormBlockDisplay) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FormBlockDisplay
impl Serialize for FormBlockDisplay
impl StructuralPartialEq for FormBlockDisplay
Auto Trait Implementations§
impl Freeze for FormBlockDisplay
impl RefUnwindSafe for FormBlockDisplay
impl Send for FormBlockDisplay
impl Sync for FormBlockDisplay
impl Unpin for FormBlockDisplay
impl UnsafeUnpin for FormBlockDisplay
impl UnwindSafe for FormBlockDisplay
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