pub struct ExtensionBody {
pub extension_type: String,
pub payload: Vec<u8>,
pub fence_language: Option<String>,
pub fence_body: Option<String>,
}Expand description
Opaque family-specific extension entity body.
Fields§
§extension_type: StringFamily-defined extension type identifier.
payload: Vec<u8>Opaque extension payload bytes.
fence_language: Option<String>Optional language tag when a fenced excerpt is also provided.
fence_body: Option<String>Optional fenced source excerpt for human-readable rendering.
Trait Implementations§
Source§impl Clone for ExtensionBody
impl Clone for ExtensionBody
Source§fn clone(&self) -> ExtensionBody
fn clone(&self) -> ExtensionBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtensionBody
impl Debug for ExtensionBody
impl Eq for ExtensionBody
Source§impl PartialEq for ExtensionBody
impl PartialEq for ExtensionBody
Source§fn eq(&self, other: &ExtensionBody) -> bool
fn eq(&self, other: &ExtensionBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtensionBody
Auto Trait Implementations§
impl Freeze for ExtensionBody
impl RefUnwindSafe for ExtensionBody
impl Send for ExtensionBody
impl Sync for ExtensionBody
impl Unpin for ExtensionBody
impl UnsafeUnpin for ExtensionBody
impl UnwindSafe for ExtensionBody
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