pub struct CompleteResponse {
pub suggestion: String,
pub model: String,
pub reason: Option<String>,
}Expand description
POST /api/predict/complete response. suggestion is empty when there is
nothing to suggest OR the request was refused (disabled / app not allowed /
secure field / no context) — reason says which, for diagnostics.
Fields§
§suggestion: String§model: String§reason: Option<String>Trait Implementations§
Source§impl Debug for CompleteResponse
impl Debug for CompleteResponse
Auto Trait Implementations§
impl Freeze for CompleteResponse
impl RefUnwindSafe for CompleteResponse
impl Send for CompleteResponse
impl Sync for CompleteResponse
impl Unpin for CompleteResponse
impl UnsafeUnpin for CompleteResponse
impl UnwindSafe for CompleteResponse
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