#[non_exhaustive]pub struct SessionConfigSelectGroup {
pub group_id: SessionConfigGroupId,
pub name: String,
pub options: Vec<SessionConfigSelectOption>,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
A group of possible values 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.group_id: SessionConfigGroupIdUnique identifier for this group.
name: StringHuman-readable label for this group.
options: Vec<SessionConfigSelectOption>The set of option values in this group.
meta: Option<Map<String, Value>>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 make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl SessionConfigSelectGroup
impl SessionConfigSelectGroup
Sourcepub fn new(
group_id: impl Into<SessionConfigGroupId>,
name: impl Into<String>,
options: Vec<SessionConfigSelectOption>,
) -> SessionConfigSelectGroup
pub fn new( group_id: impl Into<SessionConfigGroupId>, name: impl Into<String>, options: Vec<SessionConfigSelectOption>, ) -> SessionConfigSelectGroup
Builds SessionConfigSelectGroup with the required fields set; optional fields start unset or empty.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> SessionConfigSelectGroup
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> SessionConfigSelectGroup
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 SessionConfigSelectGroup
impl Clone for SessionConfigSelectGroup
Source§fn clone(&self) -> SessionConfigSelectGroup
fn clone(&self) -> SessionConfigSelectGroup
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 SessionConfigSelectGroup
impl Debug for SessionConfigSelectGroup
Source§impl<'de> Deserialize<'de> for SessionConfigSelectGroup
impl<'de> Deserialize<'de> for SessionConfigSelectGroup
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionConfigSelectGroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionConfigSelectGroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SessionConfigSelectGroup
Source§impl JsonSchema for SessionConfigSelectGroup
impl JsonSchema for SessionConfigSelectGroup
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 SessionConfigSelectGroup
impl PartialEq for SessionConfigSelectGroup
Source§impl Serialize for SessionConfigSelectGroup
impl Serialize for SessionConfigSelectGroup
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SessionConfigSelectGroup
Auto Trait Implementations§
impl Freeze for SessionConfigSelectGroup
impl RefUnwindSafe for SessionConfigSelectGroup
impl Send for SessionConfigSelectGroup
impl Sync for SessionConfigSelectGroup
impl Unpin for SessionConfigSelectGroup
impl UnsafeUnpin for SessionConfigSelectGroup
impl UnwindSafe for SessionConfigSelectGroup
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.