#[non_exhaustive]pub struct TextConstruct {
pub value: String,
pub content_type: TextType,
pub language: Option<SmallString>,
pub base: Option<String>,
}Expand description
Text construct with metadata
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: StringText content
content_type: TextTypeContent type
language: Option<SmallString>Content language (stored inline for lang codes ≤24 bytes)
base: Option<String>Base URL for relative links
Implementations§
Trait Implementations§
Source§impl Clone for TextConstruct
impl Clone for TextConstruct
Auto Trait Implementations§
impl Forget for TextConstruct
impl Freeze for TextConstruct
impl Move for TextConstruct
impl RefUnwindSafe for TextConstruct
impl Send for TextConstruct
impl Sync for TextConstruct
impl Unpin for TextConstruct
impl UnsafeUnpin for TextConstruct
impl UnwindSafe for TextConstruct
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