Enum docx_rust::document::BodyContent
source · pub enum BodyContent<'a> {
Paragraph(Paragraph<'a>),
Table(Table<'a>),
Sdt(SDT<'a>),
SectionProperty(SectionProperty<'a>),
TableCell(TableCell<'a>),
}
Expand description
A set of elements that can be contained in the body
Variants§
Paragraph(Paragraph<'a>)
Table(Table<'a>)
Sdt(SDT<'a>)
SectionProperty(SectionProperty<'a>)
TableCell(TableCell<'a>)
Trait Implementations§
source§impl<'a> Clone for BodyContent<'a>
impl<'a> Clone for BodyContent<'a>
source§fn clone(&self) -> BodyContent<'a>
fn clone(&self) -> BodyContent<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for BodyContent<'a>
impl<'a> Debug for BodyContent<'a>
source§impl<'a> From<Paragraph<'a>> for BodyContent<'a>
impl<'a> From<Paragraph<'a>> for BodyContent<'a>
source§fn from(original: Paragraph<'a>) -> BodyContent<'a>
fn from(original: Paragraph<'a>) -> BodyContent<'a>
Converts to this type from the input type.
source§impl<'a> From<SDT<'a>> for BodyContent<'a>
impl<'a> From<SDT<'a>> for BodyContent<'a>
source§fn from(original: SDT<'a>) -> BodyContent<'a>
fn from(original: SDT<'a>) -> BodyContent<'a>
Converts to this type from the input type.
source§impl<'a> From<SectionProperty<'a>> for BodyContent<'a>
impl<'a> From<SectionProperty<'a>> for BodyContent<'a>
source§fn from(original: SectionProperty<'a>) -> BodyContent<'a>
fn from(original: SectionProperty<'a>) -> BodyContent<'a>
Converts to this type from the input type.
source§impl<'a> From<Table<'a>> for BodyContent<'a>
impl<'a> From<Table<'a>> for BodyContent<'a>
source§fn from(original: Table<'a>) -> BodyContent<'a>
fn from(original: Table<'a>) -> BodyContent<'a>
Converts to this type from the input type.
source§impl<'a> From<TableCell<'a>> for BodyContent<'a>
impl<'a> From<TableCell<'a>> for BodyContent<'a>
source§fn from(original: TableCell<'a>) -> BodyContent<'a>
fn from(original: TableCell<'a>) -> BodyContent<'a>
Converts to this type from the input type.