pub struct PromptSegment {
pub slot: String,
pub hash: B3Hash,
pub len: u64,
pub sources: Vec<PromptSource>,
pub skipped: Vec<PromptSkip>,
}Expand description
One frozen segment, as prompt_assembled states it.
Fields§
§slot: String§hash: B3Hash§len: u64Bytes this segment contributed to the request.
sources: Vec<PromptSource>The documents behind the segment, in concatenation order. Written even when empty: a segment built from an identity rather than from files names none, and that is a fact rather than an omission.
skipped: Vec<PromptSkip>The documents the slot was offered and did not take.
Trait Implementations§
Source§impl Clone for PromptSegment
impl Clone for PromptSegment
Source§impl Debug for PromptSegment
impl Debug for PromptSegment
Source§impl<'de> Deserialize<'de> for PromptSegment
impl<'de> Deserialize<'de> for PromptSegment
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 PromptSegment
Source§impl PartialEq for PromptSegment
impl PartialEq for PromptSegment
Source§impl Serialize for PromptSegment
impl Serialize for PromptSegment
impl StructuralPartialEq for PromptSegment
Auto Trait Implementations§
impl Freeze for PromptSegment
impl RefUnwindSafe for PromptSegment
impl Send for PromptSegment
impl Sync for PromptSegment
impl Unpin for PromptSegment
impl UnsafeUnpin for PromptSegment
impl UnwindSafe for PromptSegment
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