pub enum Answer {
Accept(Value),
Decline,
Cancel,
Roots(Vec<Root>),
}Expand description
What the host decided. Mirrors the spec’s elicitation outcomes so a refusal is expressible without inventing content.
Variants§
Accept(Value)
The user answered; content matches the requested schema.
Decline
The user actively refused. Not an error.
Cancel
The user dismissed it without deciding (or nothing could ask).
Roots(Vec<Root>)
The roots this client exposes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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