pub struct AgentSelection {
pub uri: Uri,
}Expand description
A selected custom agent for a session.
The uri identifies a specific custom agent (matching an
{@link AgentCustomization.uri | AgentCustomization.uri} exposed via
the session’s effective customizations). Consumers resolve the agent’s
display name by looking up uri in the session’s customization tree.
A session with no agent selected uses the provider’s default behavior.
Fields§
§uri: UriStable agent URI (matches an {@link AgentCustomization.uri}).
Trait Implementations§
Source§impl Clone for AgentSelection
impl Clone for AgentSelection
Source§fn clone(&self) -> AgentSelection
fn clone(&self) -> AgentSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentSelection
impl Debug for AgentSelection
Source§impl<'de> Deserialize<'de> for AgentSelection
impl<'de> Deserialize<'de> for AgentSelection
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentSelection
impl PartialEq for AgentSelection
Source§fn eq(&self, other: &AgentSelection) -> bool
fn eq(&self, other: &AgentSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentSelection
impl Serialize for AgentSelection
impl StructuralPartialEq for AgentSelection
Auto Trait Implementations§
impl Freeze for AgentSelection
impl RefUnwindSafe for AgentSelection
impl Send for AgentSelection
impl Sync for AgentSelection
impl Unpin for AgentSelection
impl UnsafeUnpin for AgentSelection
impl UnwindSafe for AgentSelection
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
Mutably borrows from an owned value. Read more