#[non_exhaustive]pub struct TextCommandInput {
pub hint: String,
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
All text that was typed after the command name is provided as input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hint: StringPlain-text hint about the input the command expects. The Client can display it when the user hasn’t provided input yet.
meta: Option<Meta>The _meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Implementations§
Source§impl TextCommandInput
impl TextCommandInput
Sourcepub fn new(hint: impl Into<String>) -> Self
pub fn new(hint: impl Into<String>) -> Self
Builds TextCommandInput with the required fields set. Optional fields start unset or empty.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for TextCommandInput
impl Clone for TextCommandInput
Source§impl Debug for TextCommandInput
impl Debug for TextCommandInput
Source§impl<'de> Deserialize<'de> for TextCommandInput
impl<'de> Deserialize<'de> for TextCommandInput
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>,
impl Eq for TextCommandInput
Source§impl JsonSchema for TextCommandInput
impl JsonSchema for TextCommandInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TextCommandInput
impl PartialEq for TextCommandInput
Source§impl Serialize for TextCommandInput
impl Serialize for TextCommandInput
impl StructuralPartialEq for TextCommandInput
Auto Trait Implementations§
impl Forget for TextCommandInput
impl Freeze for TextCommandInput
impl Move for TextCommandInput
impl RefUnwindSafe for TextCommandInput
impl Send for TextCommandInput
impl Sync for TextCommandInput
impl Unpin for TextCommandInput
impl UnsafeUnpin for TextCommandInput
impl UnwindSafe for TextCommandInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.