pub struct BlockDef {
pub content_type: ContentType,
pub id: String,
pub properties: HashMap<String, Value>,
pub content: String,
}Expand description
Block definition
Fields§
§content_type: ContentTypeContent type (text, table, code, etc.)
id: StringBlock ID
properties: HashMap<String, Value>Properties (label, tags, etc.)
content: StringContent literal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockDef
impl<'de> Deserialize<'de> for BlockDef
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 StructuralPartialEq for BlockDef
Auto Trait Implementations§
impl Freeze for BlockDef
impl RefUnwindSafe for BlockDef
impl Send for BlockDef
impl Sync for BlockDef
impl Unpin for BlockDef
impl UnwindSafe for BlockDef
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