#[non_exhaustive]pub struct Content {
pub value: String,
pub content_type: Option<MimeType>,
pub language: Option<SmallString>,
pub base: Option<String>,
pub src: Option<String>,
}Expand description
Content block
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: 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
src: Option<String>Out-of-line content URL (Atom <content src="...">, RFC 4287 §4.1.3.2)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Content
impl Freeze for Content
impl Move for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Contentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const (): UnsafeUnpin,
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