pub struct ChatInputRequest {
pub id: String,
pub message: Option<String>,
pub url: Option<Uri>,
pub questions: Option<Vec<ChatInputQuestion>>,
pub answers: Option<HashMap<String, ChatInputAnswer>>,
}Expand description
A live request for user input.
The server creates or replaces requests with chat/inputRequested.
Clients sync drafts with chat/inputAnswerChanged and complete requests
with chat/inputCompleted.
Fields§
§id: StringStable request identifier
message: Option<String>Display message for the request as a whole
url: Option<Uri>URL the user should review or open, for URL-style elicitations
questions: Option<Vec<ChatInputQuestion>>Ordered questions to ask the user
answers: Option<HashMap<String, ChatInputAnswer>>Current draft or submitted answers, keyed by question ID
Trait Implementations§
Source§impl Clone for ChatInputRequest
impl Clone for ChatInputRequest
Source§fn clone(&self) -> ChatInputRequest
fn clone(&self) -> ChatInputRequest
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 ChatInputRequest
impl Debug for ChatInputRequest
Source§impl<'de> Deserialize<'de> for ChatInputRequest
impl<'de> Deserialize<'de> for ChatInputRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChatInputRequest
impl PartialEq for ChatInputRequest
Source§fn eq(&self, other: &ChatInputRequest) -> bool
fn eq(&self, other: &ChatInputRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatInputRequest
impl Serialize for ChatInputRequest
impl StructuralPartialEq for ChatInputRequest
Auto Trait Implementations§
impl Freeze for ChatInputRequest
impl RefUnwindSafe for ChatInputRequest
impl Send for ChatInputRequest
impl Sync for ChatInputRequest
impl Unpin for ChatInputRequest
impl UnsafeUnpin for ChatInputRequest
impl UnwindSafe for ChatInputRequest
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