pub struct PasteIngest {
pub intent: String,
pub anchors: Vec<String>,
pub attachments: Vec<String>,
}Expand description
A user’s paste, decomposed into the three things it actually is.
intent is sacrosanct — it becomes ContextQuery::goal byte-for-byte and
is never mediated. anchors are focal URIs the host already knows (open
files, mentioned symbols); path references discovered inside attachments
are appended to them. attachments are the pasted evidence blobs, each
segmented and content-addressed.
Fields§
§intent: StringThe user’s own words — passed through verbatim as the query goal.
anchors: Vec<String>Focal URIs the host already considers relevant.
attachments: Vec<String>Raw pasted evidence blobs (a log, a table, a code block, …).
Implementations§
Trait Implementations§
Source§impl Clone for PasteIngest
impl Clone for PasteIngest
Source§fn clone(&self) -> PasteIngest
fn clone(&self) -> PasteIngest
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 PasteIngest
impl Debug for PasteIngest
Source§impl Default for PasteIngest
impl Default for PasteIngest
Source§fn default() -> PasteIngest
fn default() -> PasteIngest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PasteIngest
impl<'de> Deserialize<'de> for PasteIngest
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 PasteIngest
Source§impl PartialEq for PasteIngest
impl PartialEq for PasteIngest
Source§impl Serialize for PasteIngest
impl Serialize for PasteIngest
impl StructuralPartialEq for PasteIngest
Auto Trait Implementations§
impl Freeze for PasteIngest
impl RefUnwindSafe for PasteIngest
impl Send for PasteIngest
impl Sync for PasteIngest
impl Unpin for PasteIngest
impl UnsafeUnpin for PasteIngest
impl UnwindSafe for PasteIngest
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