pub struct ParagraphElement {
pub start_index: Option<i64>,
pub end_index: Option<i64>,
pub text_run: Option<TextRun>,
pub inline_object_element: Option<InlineObjectElement>,
pub page_break: Option<Value>,
pub column_break: Option<Value>,
pub horizontal_rule: Option<Value>,
pub footnote_reference: Option<Value>,
pub auto_text: Option<Value>,
pub equation: Option<Value>,
pub person: Option<Value>,
pub rich_link: Option<Value>,
}Expand description
One inline element of a paragraph.
Only textRun carries text this crate reads. The rest are modelled as
present/absent so an element that consumes index space without
contributing text — an inline image, a page break — is not mistaken for
nothing at all.
Fields§
§start_index: Option<i64>Inclusive start, in UTF-16 code units. Absent means 0.
end_index: Option<i64>Exclusive end, in UTF-16 code units.
text_run: Option<TextRun>A run of text with uniform styling.
inline_object_element: Option<InlineObjectElement>An inline image or drawing. Consumes one index unit, contributes no text — so its paragraph’s text is shorter than its index span, which is correct and must not be “fixed”.
page_break: Option<Value>A page break.
column_break: Option<Value>A column break.
horizontal_rule: Option<Value>A horizontal rule.
footnote_reference: Option<Value>A footnote reference.
auto_text: Option<Value>Auto-text such as a page number.
equation: Option<Value>An equation.
person: Option<Value>A person mention.
rich_link: Option<Value>A rich link chip.
Trait Implementations§
Source§impl Clone for ParagraphElement
impl Clone for ParagraphElement
Source§impl Debug for ParagraphElement
impl Debug for ParagraphElement
Source§impl Default for ParagraphElement
impl Default for ParagraphElement
Source§impl<'de> Deserialize<'de> for ParagraphElement
impl<'de> Deserialize<'de> for ParagraphElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ParagraphElement
Source§impl PartialEq for ParagraphElement
impl PartialEq for ParagraphElement
Source§impl Serialize for ParagraphElement
impl Serialize for ParagraphElement
impl StructuralPartialEq for ParagraphElement
Auto Trait Implementations§
impl Freeze for ParagraphElement
impl RefUnwindSafe for ParagraphElement
impl Send for ParagraphElement
impl Sync for ParagraphElement
impl Unpin for ParagraphElement
impl UnsafeUnpin for ParagraphElement
impl UnwindSafe for ParagraphElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more