pub struct SegmentBlock {
pub block_id: BlockId,
pub kind: String,
pub text: String,
pub text_runs: Vec<SegmentTextRun>,
pub protected_spans: Vec<String>,
}Fields§
§block_id: BlockId§kind: String§text: String§text_runs: Vec<SegmentTextRun>§protected_spans: Vec<String>Trait Implementations§
Source§impl Clone for SegmentBlock
impl Clone for SegmentBlock
Source§fn clone(&self) -> SegmentBlock
fn clone(&self) -> SegmentBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentBlock
impl Debug for SegmentBlock
Source§impl<'de> Deserialize<'de> for SegmentBlock
impl<'de> Deserialize<'de> for SegmentBlock
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 SegmentBlock
impl PartialEq for SegmentBlock
Source§fn eq(&self, other: &SegmentBlock) -> bool
fn eq(&self, other: &SegmentBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SegmentBlock
impl Serialize for SegmentBlock
impl Eq for SegmentBlock
impl StructuralPartialEq for SegmentBlock
Auto Trait Implementations§
impl Freeze for SegmentBlock
impl RefUnwindSafe for SegmentBlock
impl Send for SegmentBlock
impl Sync for SegmentBlock
impl Unpin for SegmentBlock
impl UnsafeUnpin for SegmentBlock
impl UnwindSafe for SegmentBlock
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<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.