pub struct SlotText {
pub text: String,
pub truncated: bool,
pub address: Option<SlotAddress>,
}Expand description
One payload-derived text slot. ViewModel::compute always produces the full text;
only the payload envelope in Document::new sets truncated — so the CLI painter,
which reads the view directly, never sees a cut slot. Generated wording (verdicts,
confidence, attribution, warnings) is bounded by construction and stays plain String.
Fields§
§text: String§truncated: boolWhether the envelope cut this slot at SLOT_TEXT_LIMIT. A UI must render the
mark visibly — a silently shortened payload reads as the payload.
address: Option<SlotAddress>Where to find this slot’s full text again (issue #30: expand-on-demand). Some iff
truncated — an unmarked slot already carries its full text, so it needs no address.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlotText
impl<'de> Deserialize<'de> for SlotText
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 SlotText
impl StructuralPartialEq for SlotText
Auto Trait Implementations§
impl Freeze for SlotText
impl RefUnwindSafe for SlotText
impl Send for SlotText
impl Sync for SlotText
impl Unpin for SlotText
impl UnsafeUnpin for SlotText
impl UnwindSafe for SlotText
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.