pub struct SectionBreak {
pub section_style: Option<SectionStyle>,
pub suggested_deletion_ids: Option<Vec<String>>,
pub suggested_insertion_ids: Option<Vec<String>>,
}
Expand description
A StructuralElement representing a section break. A section is a range of content that has the same SectionStyle. A section break represents the start of a new section, and the section style applies to the section after the section break. The document body always begins with a section break.
This type is not used in any activity, and only used as part of another schema.
Fields§
§section_style: Option<SectionStyle>
The style of the section after this section break.
suggested_deletion_ids: Option<Vec<String>>
The suggested deletion IDs. If empty, then there are no suggested deletions of this content.
suggested_insertion_ids: Option<Vec<String>>
The suggested insertion IDs. A SectionBreak may have multiple insertion IDs if it’s a nested suggested change. If empty, then this is not a suggested insertion.
Trait Implementations§
Source§impl Clone for SectionBreak
impl Clone for SectionBreak
Source§fn clone(&self) -> SectionBreak
fn clone(&self) -> SectionBreak
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 Debug for SectionBreak
impl Debug for SectionBreak
Source§impl Default for SectionBreak
impl Default for SectionBreak
Source§fn default() -> SectionBreak
fn default() -> SectionBreak
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SectionBreak
impl<'de> Deserialize<'de> for SectionBreak
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
Source§impl Serialize for SectionBreak
impl Serialize for SectionBreak
impl Part for SectionBreak
Auto Trait Implementations§
impl Freeze for SectionBreak
impl RefUnwindSafe for SectionBreak
impl Send for SectionBreak
impl Sync for SectionBreak
impl Unpin for SectionBreak
impl UnwindSafe for SectionBreak
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