#[non_exhaustive]pub struct SetSessionConfigOptionRequest {
pub session_id: SessionId,
pub config_id: SessionConfigId,
pub value: SessionConfigOptionValue,
pub meta: Option<Meta>,
}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<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 SetSessionConfigOptionRequest
impl SetSessionConfigOptionRequest
Sourcepub fn new(
session_id: impl Into<SessionId>,
config_id: impl Into<SessionConfigId>,
value: impl Into<SessionConfigOptionValue>,
) -> Self
Available on crate feature unstable_boolean_config only.
pub fn new( session_id: impl Into<SessionId>, config_id: impl Into<SessionConfigId>, value: impl Into<SessionConfigOptionValue>, ) -> Self
unstable_boolean_config only.Builds SetSessionConfigOptionRequest with the required request 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 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SetSessionConfigOptionRequest
Source§impl IntoV2 for SetSessionConfigOptionRequest
Available on crate feature unstable_protocol_v2 only.
impl IntoV2 for SetSessionConfigOptionRequest
unstable_protocol_v2 only.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 ==.impl StructuralPartialEq for SetSessionConfigOptionRequest
Auto Trait Implementations§
impl Freeze for SetSessionConfigOptionRequest
impl RefUnwindSafe for SetSessionConfigOptionRequest
impl Send for SetSessionConfigOptionRequest
impl Sync for SetSessionConfigOptionRequest
impl Unpin for SetSessionConfigOptionRequest
impl UnsafeUnpin for SetSessionConfigOptionRequest
impl UnwindSafe for SetSessionConfigOptionRequest
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.