pub struct CodeBlock {
pub caption: Vec<RichText>,
pub rich_text: Vec<RichText>,
pub language: Language,
}
Expand description
https://developers.notion.com/reference/block#code
Code block objects contain the following information within the code property:
Fields§
§caption: Vec<RichText>
The rich text in the caption of the code block.
rich_text: Vec<RichText>
The rich text in the code block.
language: Language
The language of the code contained in the code block.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CodeBlock
impl<'de> Deserialize<'de> for CodeBlock
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
Auto Trait Implementations§
impl Freeze for CodeBlock
impl RefUnwindSafe for CodeBlock
impl Send for CodeBlock
impl Sync for CodeBlock
impl Unpin for CodeBlock
impl UnwindSafe for CodeBlock
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