pub struct Content {
pub value: String,
pub content_type: Option<MimeType>,
pub language: Option<SmallString>,
pub base: Option<String>,
}Expand description
Content block
Fields§
§value: StringContent body
content_type: Option<MimeType>Content MIME type
language: Option<SmallString>Content language (stored inline for lang codes ≤24 bytes)
base: Option<String>Base URL for relative links
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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