pub struct DirectCompletion {
pub text: String,
pub usage: TokenUsage,
}Expand description
Result of a single-shot LLM call via
DirectCompletionHost::direct_completion.
Fields§
§text: String§usage: TokenUsageTrait Implementations§
Source§impl Clone for DirectCompletion
impl Clone for DirectCompletion
Source§fn clone(&self) -> DirectCompletion
fn clone(&self) -> DirectCompletion
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 DirectCompletion
impl RefUnwindSafe for DirectCompletion
impl Send for DirectCompletion
impl Sync for DirectCompletion
impl Unpin for DirectCompletion
impl UnsafeUnpin for DirectCompletion
impl UnwindSafe for DirectCompletion
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