pub struct TextValue {
pub text: Option<String>,
pub text_preview: Option<String>,
pub complete: bool,
}Expand description
One text value with its completeness declared. A truncated value puts
its bounded piece in text_preview and keeps text absent, so a
preview can never be copied as a complete rewrite payload.
Fields§
§text: Option<String>The complete exact text; absent when complete is false.
text_preview: Option<String>Bounded piece of the text when complete is false.
complete: boolWhether text holds the whole value.
Trait Implementations§
impl Eq for TextValue
Source§impl Serialize for TextValue
impl Serialize for TextValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TextValue
Auto Trait Implementations§
impl Forget for TextValue
impl Freeze for TextValue
impl Move for TextValue
impl RefUnwindSafe for TextValue
impl Send for TextValue
impl Sync for TextValue
impl Unpin for TextValue
impl UnsafeUnpin for TextValue
impl UnwindSafe for TextValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.