pub struct SnapshotRun {
pub text: String,
pub foreground: Option<String>,
pub background: Option<String>,
pub attributes: Vec<String>,
pub link: Option<String>,
}Expand description
A run of text in one style on one row, as schema 2 stores it: adjacent segments that look the same are merged, so how the output was split into segments does not show.
Fields§
§text: String§foreground: Option<String>§background: Option<String>§attributes: Vec<String>§link: Option<String>Trait Implementations§
Source§impl Clone for SnapshotRun
impl Clone for SnapshotRun
Source§impl Debug for SnapshotRun
impl Debug for SnapshotRun
Source§impl<'de> Deserialize<'de> for SnapshotRun
impl<'de> Deserialize<'de> for SnapshotRun
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 SnapshotRun
Source§impl PartialEq for SnapshotRun
impl PartialEq for SnapshotRun
Source§impl Serialize for SnapshotRun
impl Serialize for SnapshotRun
impl StructuralPartialEq for SnapshotRun
Auto Trait Implementations§
impl Freeze for SnapshotRun
impl RefUnwindSafe for SnapshotRun
impl Send for SnapshotRun
impl Sync for SnapshotRun
impl Unpin for SnapshotRun
impl UnsafeUnpin for SnapshotRun
impl UnwindSafe for SnapshotRun
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.