pub struct InterceptResp {
pub block: bool,
pub stop: bool,
pub cancel: bool,
pub handled: bool,
pub continue_: bool,
pub reason: String,
pub input: Vec<u8>,
pub content: String,
pub context: String,
pub system_prompt_append: String,
pub toast: String,
pub prompt: String,
}Expand description
Ext→host intercept reply.
Fields§
§block: bool§stop: bool§cancel: bool§handled: bool§continue_: boolWritten as continue_ to dodge the keyword; wire tag is
F_IX_RES_CONTINUE.
reason: String§input: Vec<u8>§content: String§context: String§system_prompt_append: String§toast: String§prompt: StringTrait Implementations§
Source§impl Clone for InterceptResp
impl Clone for InterceptResp
Source§fn clone(&self) -> InterceptResp
fn clone(&self) -> InterceptResp
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 moreSource§impl Debug for InterceptResp
impl Debug for InterceptResp
Source§impl Default for InterceptResp
impl Default for InterceptResp
Source§fn default() -> InterceptResp
fn default() -> InterceptResp
Returns the “default value” for a type. Read more
impl Eq for InterceptResp
Source§impl PartialEq for InterceptResp
impl PartialEq for InterceptResp
impl StructuralPartialEq for InterceptResp
Auto Trait Implementations§
impl Freeze for InterceptResp
impl RefUnwindSafe for InterceptResp
impl Send for InterceptResp
impl Sync for InterceptResp
impl Unpin for InterceptResp
impl UnsafeUnpin for InterceptResp
impl UnwindSafe for InterceptResp
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