pub struct Paragraph {
pub bullet: Option<Bullet>,
pub elements: Option<Vec<ParagraphElement>>,
pub paragraph_style: Option<ParagraphStyle>,
pub positioned_object_ids: Option<Vec<String>>,
pub suggested_bullet_changes: Option<HashMap<String, SuggestedBullet>>,
pub suggested_paragraph_style_changes: Option<HashMap<String, SuggestedParagraphStyle>>,
pub suggested_positioned_object_ids: Option<HashMap<String, ObjectReferences>>,
}
Expand description
A StructuralElement representing a paragraph. A paragraph is a range of content that’s terminated with a newline character.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bullet: Option<Bullet>
The bullet for this paragraph. If not present, the paragraph does not belong to a list.
elements: Option<Vec<ParagraphElement>>
The content of the paragraph, broken down into its component parts.
paragraph_style: Option<ParagraphStyle>
The style of this paragraph.
positioned_object_ids: Option<Vec<String>>
The IDs of the positioned objects tethered to this paragraph.
suggested_bullet_changes: Option<HashMap<String, SuggestedBullet>>
The suggested changes to this paragraph’s bullet.
suggested_paragraph_style_changes: Option<HashMap<String, SuggestedParagraphStyle>>
The suggested paragraph style changes to this paragraph, keyed by suggestion ID.
suggested_positioned_object_ids: Option<HashMap<String, ObjectReferences>>
The IDs of the positioned objects suggested to be attached to this paragraph, keyed by suggestion ID.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Paragraph
impl<'de> Deserialize<'de> for Paragraph
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 Part for Paragraph
Auto Trait Implementations§
impl Freeze for Paragraph
impl RefUnwindSafe for Paragraph
impl Send for Paragraph
impl Sync for Paragraph
impl Unpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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