pub struct UserPromptResponse {
pub id: String,
pub dismissed: bool,
pub value: PromptResponseValue,
}Expand description
The user’s response to a prompt.
Fields§
§id: String§dismissed: boolWhether the user dismissed the prompt (Esc).
value: PromptResponseValueThe typed response value.
Trait Implementations§
Source§impl Clone for UserPromptResponse
impl Clone for UserPromptResponse
Source§fn clone(&self) -> UserPromptResponse
fn clone(&self) -> UserPromptResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 UserPromptResponse
impl Debug for UserPromptResponse
Source§impl<'de> Deserialize<'de> for UserPromptResponse
impl<'de> Deserialize<'de> for UserPromptResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserPromptResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserPromptResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UserPromptResponse
impl PartialEq for UserPromptResponse
Source§impl Serialize for UserPromptResponse
impl Serialize for UserPromptResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UserPromptResponse
Auto Trait Implementations§
impl Freeze for UserPromptResponse
impl RefUnwindSafe for UserPromptResponse
impl Send for UserPromptResponse
impl Sync for UserPromptResponse
impl Unpin for UserPromptResponse
impl UnsafeUnpin for UserPromptResponse
impl UnwindSafe for UserPromptResponse
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