pub struct ContextFragment {
pub source: &'static str,
pub priority: u8,
pub estimated_tokens: u32,
pub text: String,
}Expand description
One fragment contributed by a strategy.
Fields§
§source: &'static str§priority: u8§estimated_tokens: u32§text: StringTrait Implementations§
Source§impl Clone for ContextFragment
impl Clone for ContextFragment
Source§fn clone(&self) -> ContextFragment
fn clone(&self) -> ContextFragment
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 moreAuto Trait Implementations§
impl Freeze for ContextFragment
impl RefUnwindSafe for ContextFragment
impl Send for ContextFragment
impl Sync for ContextFragment
impl Unpin for ContextFragment
impl UnsafeUnpin for ContextFragment
impl UnwindSafe for ContextFragment
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