#[non_exhaustive]pub struct SessionConfigSelectOption {
pub value: SessionConfigValueId,
pub name: String,
pub description: Option<String>,
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
A possible value for 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.value: SessionConfigValueIdUnique identifier for this option value.
name: StringHuman-readable label for this option value.
description: Option<String>Optional description for this option 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 SessionConfigSelectOption
impl SessionConfigSelectOption
Sourcepub fn new(
value: impl Into<SessionConfigValueId>,
name: impl Into<String>,
) -> Self
pub fn new( value: impl Into<SessionConfigValueId>, name: impl Into<String>, ) -> Self
Builds SessionConfigSelectOption with the required fields set; optional fields start unset or empty.
Sourcepub fn description(self, description: impl IntoOption<String>) -> Self
pub fn description(self, description: impl IntoOption<String>) -> Self
Sets or clears the optional description field.
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 SessionConfigSelectOption
impl Clone for SessionConfigSelectOption
Source§fn clone(&self) -> SessionConfigSelectOption
fn clone(&self) -> SessionConfigSelectOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionConfigSelectOption
impl Debug for SessionConfigSelectOption
Source§impl<'de> Deserialize<'de> for SessionConfigSelectOption
impl<'de> Deserialize<'de> for SessionConfigSelectOption
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 SessionConfigSelectOption
Source§impl IntoV1 for SessionConfigSelectOption
impl IntoV1 for SessionConfigSelectOption
Source§impl JsonSchema for SessionConfigSelectOption
impl JsonSchema for SessionConfigSelectOption
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 SessionConfigSelectOption
impl PartialEq for SessionConfigSelectOption
Source§fn eq(&self, other: &SessionConfigSelectOption) -> bool
fn eq(&self, other: &SessionConfigSelectOption) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionConfigSelectOption
Auto Trait Implementations§
impl Freeze for SessionConfigSelectOption
impl RefUnwindSafe for SessionConfigSelectOption
impl Send for SessionConfigSelectOption
impl Sync for SessionConfigSelectOption
impl Unpin for SessionConfigSelectOption
impl UnsafeUnpin for SessionConfigSelectOption
impl UnwindSafe for SessionConfigSelectOption
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.