jacquard_api/pub_leaflet/blocks/
code.rs1#[jacquard_derive::lexicon]
9#[derive(
10 serde::Serialize,
11 serde::Deserialize,
12 Debug,
13 Clone,
14 PartialEq,
15 Eq,
16 jacquard_derive::IntoStatic,
17 Default
18)]
19#[serde(rename_all = "camelCase")]
20pub struct Code<'a> {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 pub language: std::option::Option<jacquard_common::CowStr<'a>>,
24 #[serde(borrow)]
25 pub plaintext: jacquard_common::CowStr<'a>,
26 #[serde(skip_serializing_if = "std::option::Option::is_none")]
27 #[serde(borrow)]
28 pub syntax_highlighting_theme: std::option::Option<jacquard_common::CowStr<'a>>,
29}