pub enum Response {
Bool(bool),
Text(String),
Secret(SecretString),
Acknowledge,
}Expand description
In-process user response.
Carries plaintext secrets and is intentionally not Clone or
Serialize, both would risk accidental leakage. For transcript
serialization use rite_model::ResponseRecord, which encodes secrets
as a redaction marker with a hash of the plaintext.
Variants§
Bool(bool)
Yes / no answer.
Text(String)
Free-form text answer (already validated by the runtime).
Secret(SecretString)
Sensitive answer. Wrapped in SecretString to zeroize on drop.
Acknowledge
Acknowledgement of a Prompt::Continue.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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