pub struct UserInputResult {
pub handled: bool,
pub text: Option<String>,
pub reason: String,
}Fields§
§handled: booltrue swallows the prompt (no agent loop).
text: Option<String>Some replaces the prompt text.
reason: StringTrait Implementations§
Source§impl Clone for UserInputResult
impl Clone for UserInputResult
Source§fn clone(&self) -> UserInputResult
fn clone(&self) -> UserInputResult
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 UserInputResult
impl Debug for UserInputResult
Source§impl Default for UserInputResult
impl Default for UserInputResult
Source§fn default() -> UserInputResult
fn default() -> UserInputResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserInputResult
impl RefUnwindSafe for UserInputResult
impl Send for UserInputResult
impl Sync for UserInputResult
impl Unpin for UserInputResult
impl UnsafeUnpin for UserInputResult
impl UnwindSafe for UserInputResult
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