1use thiserror::Error; 2 3#[derive(Error, Debug)] 4pub enum UserConsent { 5 #[error("Unable to read input")] 6 ReadError(#[source] std::io::Error), 7 8 #[error("User declined consent.")] 9 Declined, 10}