#[non_exhaustive]pub struct SessionConfigOptionsCapabilities {
pub boolean: Option<BooleanConfigOptionCapabilities>,
pub meta: Option<Meta>,
}Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Session configuration option capabilities supported by the client.
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.boolean: Option<BooleanConfigOptionCapabilities>Whether the client supports boolean session configuration options.
Omitted or null means the client does not advertise support.
Supplying {} means agents may include type: "boolean" entries in
configOptions, and the client may send session/set_config_option
requests with type: "boolean" and a boolean value.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl SessionConfigOptionsCapabilities
impl SessionConfigOptionsCapabilities
Sourcepub fn new() -> Self
Available on crate feature unstable_boolean_config only.
pub fn new() -> Self
unstable_boolean_config only.Builds an empty SessionConfigOptionsCapabilities; use builder methods to advertise supported sub-capabilities.
Sourcepub fn boolean(
self,
boolean: impl IntoOption<BooleanConfigOptionCapabilities>,
) -> Self
Available on crate feature unstable_boolean_config only.
pub fn boolean( self, boolean: impl IntoOption<BooleanConfigOptionCapabilities>, ) -> Self
unstable_boolean_config only.Whether the client supports boolean session configuration options.
Omitted or null means the client does not advertise support.
Supplying {} means agents may include type: "boolean" entries in
configOptions, and the client may send session/set_config_option
requests with type: "boolean" and a boolean value.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_boolean_config only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_boolean_config only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for SessionConfigOptionsCapabilities
impl Clone for SessionConfigOptionsCapabilities
Source§fn clone(&self) -> SessionConfigOptionsCapabilities
fn clone(&self) -> SessionConfigOptionsCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SessionConfigOptionsCapabilities
impl Default for SessionConfigOptionsCapabilities
Source§fn default() -> SessionConfigOptionsCapabilities
fn default() -> SessionConfigOptionsCapabilities
Source§impl<'de> Deserialize<'de> for SessionConfigOptionsCapabilities
impl<'de> Deserialize<'de> for SessionConfigOptionsCapabilities
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 SessionConfigOptionsCapabilities
Source§impl JsonSchema for SessionConfigOptionsCapabilities
impl JsonSchema for SessionConfigOptionsCapabilities
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 SessionConfigOptionsCapabilities
impl PartialEq for SessionConfigOptionsCapabilities
Source§fn eq(&self, other: &SessionConfigOptionsCapabilities) -> bool
fn eq(&self, other: &SessionConfigOptionsCapabilities) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionConfigOptionsCapabilities
Auto Trait Implementations§
impl Freeze for SessionConfigOptionsCapabilities
impl RefUnwindSafe for SessionConfigOptionsCapabilities
impl Send for SessionConfigOptionsCapabilities
impl Sync for SessionConfigOptionsCapabilities
impl Unpin for SessionConfigOptionsCapabilities
impl UnsafeUnpin for SessionConfigOptionsCapabilities
impl UnwindSafe for SessionConfigOptionsCapabilities
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.