pub struct TextContent {
pub text: String,
pub annotations: Option<Annotations>,
pub extensions: Extensions,
}Expand description
{"type": "text", "text": "..."}.
Fields§
§text: StringThe text.
annotations: Option<Annotations>Optional annotations, 2025-03-26 (PR #185).
extensions: ExtensionsUnmodelled fields.
Implementations§
Source§impl TextContent
impl TextContent
Sourcepub const fn required_features(&self) -> FeatureSet
pub const fn required_features(&self) -> FeatureSet
What this block needs, over and above being text at all.
Trait Implementations§
Source§impl Clone for TextContent
impl Clone for TextContent
Source§impl Debug for TextContent
impl Debug for TextContent
Source§impl Default for TextContent
impl Default for TextContent
Source§impl PartialEq for TextContent
impl PartialEq for TextContent
impl StructuralPartialEq for TextContent
Auto Trait Implementations§
impl Freeze for TextContent
impl RefUnwindSafe for TextContent
impl Send for TextContent
impl Sync for TextContent
impl Unpin for TextContent
impl UnsafeUnpin for TextContent
impl UnwindSafe for TextContent
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