pub struct Paragraph {
pub index: usize,
pub id: String,
pub text: String,
pub style: Option<String>,
pub numbered: bool,
pub in_table: bool,
pub page_break: bool,
pub runs: Vec<Span>,
pub limitations: Vec<String>,
}Expand description
One paragraph of the body or a story. index and id are valid for this
exact snapshot.
Fields§
§index: usizeZero-based order in its story, table-cell paragraphs included.
id: Stringp{index} (or header1, header1.p{index}, …:
crate::ids::paragraph_id); the edit plan’s paragraph selector.
text: StringVisible text (see module docs for the projection rules).
style: Option<String>w:pStyle id when set directly on the paragraph.
numbered: boolParagraph carries direct w:numPr numbering.
in_table: boolParagraph lives in a table cell.
page_break: boolParagraph contains an explicit page break.
runs: Vec<Span>Direct run formatting over text, in char offsets, adjacent equal
formatting merged. Style-inherited formatting is not resolved.
limitations: Vec<String>Constructs present but not represented in text (sym, field,
hyperlink, content_control, drawing, text_box_omitted,
alternate_content, column_break, revision, note_reference,
unknown:<local-name>).
Trait Implementations§
impl Eq for Paragraph
Source§impl Serialize for Paragraph
impl Serialize for Paragraph
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Paragraph
Auto Trait Implementations§
impl Forget for Paragraph
impl Freeze for Paragraph
impl Move for Paragraph
impl RefUnwindSafe for Paragraph
impl Send for Paragraph
impl Sync for Paragraph
impl Unpin for Paragraph
impl UnsafeUnpin for Paragraph
impl UnwindSafe for Paragraph
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.