pub struct Block {
pub id: String,
pub note_id: String,
pub parent_id: Option<Option<String>>,
pub type: BlockType,
pub content: Box<BlockContent>,
pub properties: Option<HashMap<String, Value>>,
pub position: i32,
pub has_children: bool,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
}Fields§
§id: String§note_id: String§parent_id: Option<Option<String>>§type: BlockType§content: Box<BlockContent>§properties: Option<HashMap<String, Value>>§position: i32Order within the parent (0-indexed).
has_children: bool§created_at: DateTime<FixedOffset>§updated_at: DateTime<FixedOffset>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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 Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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