pub enum CompletionMode {
Standard,
HealedJson,
CoercedSchema(Schema),
}Expand description
Mode for completion post-processing.
Variants§
Standard
Return the raw completion response.
HealedJson
Parse the response content as JSON using healing.
CoercedSchema(Schema)
Parse and coerce the response into the provided schema.
Trait Implementations§
Source§impl Clone for CompletionMode
impl Clone for CompletionMode
Source§fn clone(&self) -> CompletionMode
fn clone(&self) -> CompletionMode
Returns a duplicate of the value. Read more
1.0.0 · 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 CompletionMode
impl RefUnwindSafe for CompletionMode
impl Send for CompletionMode
impl Sync for CompletionMode
impl Unpin for CompletionMode
impl UnsafeUnpin for CompletionMode
impl UnwindSafe for CompletionMode
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