pub struct StorySnapshot {
pub id: String,
pub length: u32,
pub paragraphs: Vec<ParagraphSnapshot>,
}Fields§
§id: String§length: u32§paragraphs: Vec<ParagraphSnapshot>Implementations§
Source§impl StorySnapshot
impl StorySnapshot
pub fn plain_text(&self) -> String
Trait Implementations§
Source§impl Clone for StorySnapshot
impl Clone for StorySnapshot
Source§impl Debug for StorySnapshot
impl Debug for StorySnapshot
Source§impl<'de> Deserialize<'de> for StorySnapshot
impl<'de> Deserialize<'de> for StorySnapshot
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 PartialEq for StorySnapshot
impl PartialEq for StorySnapshot
Source§impl Serialize for StorySnapshot
impl Serialize for StorySnapshot
impl StructuralPartialEq for StorySnapshot
Auto Trait Implementations§
impl Freeze for StorySnapshot
impl RefUnwindSafe for StorySnapshot
impl Send for StorySnapshot
impl Sync for StorySnapshot
impl Unpin for StorySnapshot
impl UnsafeUnpin for StorySnapshot
impl UnwindSafe for StorySnapshot
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