#[non_exhaustive]pub struct SetSessionConfigOptionRequest {
pub session_id: SessionId,
pub config_id: SessionConfigId,
pub value: SessionConfigOptionValue,
pub meta: Option<Map<String, Value>>,
}Expand description
Request parameters for setting a session configuration option.
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.session_id: SessionIdThe ID of the session to set the configuration option for.
config_id: SessionConfigIdThe ID of the configuration option to set.
value: SessionConfigOptionValueunstable_boolean_config only.The value to set, including a type discriminator and the raw value.
When type is absent on the wire, defaults to treating the value as a
SessionConfigValueId for select options.
meta: Option<Map<String, Value>>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 SetSessionConfigOptionRequest
impl SetSessionConfigOptionRequest
pub fn new( session_id: impl Into<SessionId>, config_id: impl Into<SessionConfigId>, value: impl Into<SessionConfigOptionValue>, ) -> SetSessionConfigOptionRequest
unstable_boolean_config only.Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> SetSessionConfigOptionRequest
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> SetSessionConfigOptionRequest
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 SetSessionConfigOptionRequest
impl Clone for SetSessionConfigOptionRequest
Source§fn clone(&self) -> SetSessionConfigOptionRequest
fn clone(&self) -> SetSessionConfigOptionRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for SetSessionConfigOptionRequest
impl<'de> Deserialize<'de> for SetSessionConfigOptionRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetSessionConfigOptionRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetSessionConfigOptionRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SetSessionConfigOptionRequest
Source§impl IntoV2 for SetSessionConfigOptionRequest
impl IntoV2 for SetSessionConfigOptionRequest
Source§type Output = SetSessionConfigOptionRequest
type Output = SetSessionConfigOptionRequest
Source§fn into_v2(
self,
) -> Result<<SetSessionConfigOptionRequest as IntoV2>::Output, ProtocolConversionError>
fn into_v2( self, ) -> Result<<SetSessionConfigOptionRequest as IntoV2>::Output, ProtocolConversionError>
Source§impl JsonRpcMessage for SetSessionConfigOptionRequest
impl JsonRpcMessage for SetSessionConfigOptionRequest
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
Source§impl JsonRpcRequest for SetSessionConfigOptionRequest
impl JsonRpcRequest for SetSessionConfigOptionRequest
Source§type Response = SetSessionConfigOptionResponse
type Response = SetSessionConfigOptionResponse
Source§impl JsonSchema for SetSessionConfigOptionRequest
impl JsonSchema for SetSessionConfigOptionRequest
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 SetSessionConfigOptionRequest
impl PartialEq for SetSessionConfigOptionRequest
Source§fn eq(&self, other: &SetSessionConfigOptionRequest) -> bool
fn eq(&self, other: &SetSessionConfigOptionRequest) -> bool
self and other values to be equal, and is used by ==.