Enum notion::models::text::RichText [−][src]
pub enum RichText {
Text {
rich_text: RichTextCommon,
text: Text,
},
Mention {
rich_text: RichTextCommon,
},
Equation {
rich_text: RichTextCommon,
},
}
Expand description
Rich text objects contain data for displaying formatted text, mentions, and equations. A rich text object also contains annotations for style information. Arrays of rich text objects are used within property objects and property value objects to create what a user sees as a single text value in Notion.
Variants
Fields of Text
rich_text: RichTextCommon
text: Text
Fields of Mention
rich_text: RichTextCommon
Fields of Equation
rich_text: RichTextCommon
Implementations
Trait Implementations
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 RefUnwindSafe for RichText
impl UnwindSafe for RichText
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more