pub struct ParagraphText {
pub paragraph_id: String,
pub start: u32,
pub end: u32,
pub line_breaks: Vec<u32>,
pub fields: Vec<TextField>,
pub editable: bool,
}Expand description
One paragraph’s place in its story’s projected text.
Fields§
§paragraph_id: String§start: u32Story offsets of the paragraph’s text; a following separator sits at end.
end: u32§line_breaks: Vec<u32>Story offsets of soft line breaks, which read as \n inside the paragraph.
fields: Vec<TextField>Field results, such as slide numbers, that text steps leave whole.
editable: boolFalse when saving could not keep a field once the paragraph changes: the field is empty or left the unchanged leading or trailing text. Steps changing the paragraph refuse it.
Trait Implementations§
Source§impl Clone for ParagraphText
impl Clone for ParagraphText
Source§impl Debug for ParagraphText
impl Debug for ParagraphText
Source§impl<'de> Deserialize<'de> for ParagraphText
impl<'de> Deserialize<'de> for ParagraphText
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 ParagraphText
Source§impl PartialEq for ParagraphText
impl PartialEq for ParagraphText
Source§impl Serialize for ParagraphText
impl Serialize for ParagraphText
impl StructuralPartialEq for ParagraphText
Auto Trait Implementations§
impl Freeze for ParagraphText
impl RefUnwindSafe for ParagraphText
impl Send for ParagraphText
impl Sync for ParagraphText
impl Unpin for ParagraphText
impl UnsafeUnpin for ParagraphText
impl UnwindSafe for ParagraphText
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§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.