pub enum SegmentOutcome {
Anchor {
uri: String,
},
Frame {
id: String,
representation: Representation,
inline_tokens: u32,
source_tokens: u32,
},
Duplicate {
id: String,
},
}Expand description
What one classified segment became — the payload of a SegmentReport, and
the “visible and correctable” surface a host UI renders as a pill.
Variants§
Anchor
Routed to ContextQuery::anchors — zero content, zero tokens.
Frame
Turned into a content-addressed frame.
Fields
§
representation: RepresentationThe representation the default query serves it as.
Duplicate
Byte-identical to an earlier segment; collapsed to one frame.
Trait Implementations§
Source§impl Clone for SegmentOutcome
impl Clone for SegmentOutcome
Source§fn clone(&self) -> SegmentOutcome
fn clone(&self) -> SegmentOutcome
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 SegmentOutcome
impl Debug for SegmentOutcome
Source§impl<'de> Deserialize<'de> for SegmentOutcome
impl<'de> Deserialize<'de> for SegmentOutcome
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 SegmentOutcome
Source§impl PartialEq for SegmentOutcome
impl PartialEq for SegmentOutcome
Source§impl Serialize for SegmentOutcome
impl Serialize for SegmentOutcome
impl StructuralPartialEq for SegmentOutcome
Auto Trait Implementations§
impl Freeze for SegmentOutcome
impl RefUnwindSafe for SegmentOutcome
impl Send for SegmentOutcome
impl Sync for SegmentOutcome
impl Unpin for SegmentOutcome
impl UnsafeUnpin for SegmentOutcome
impl UnwindSafe for SegmentOutcome
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