pub struct BackendRequest {
pub context: PreparedInlineCompletionContext,
pub max_output_tokens: u32,
pub timeout_ms: u64,
}Expand description
Request payload sent to an AI completion backend.
Fields§
§context: PreparedInlineCompletionContextPrepared context from the current buffer.
max_output_tokens: u32Maximum tokens to generate.
timeout_ms: u64Timeout in milliseconds.
Trait Implementations§
Source§impl Clone for BackendRequest
impl Clone for BackendRequest
Source§fn clone(&self) -> BackendRequest
fn clone(&self) -> BackendRequest
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 BackendRequest
impl RefUnwindSafe for BackendRequest
impl Send for BackendRequest
impl Sync for BackendRequest
impl Unpin for BackendRequest
impl UnsafeUnpin for BackendRequest
impl UnwindSafe for BackendRequest
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