#[non_exhaustive]pub struct SessionCapabilitiesConfig {
pub web_search: WebSearchCapabilityConfig,
}Expand description
Entry point for session-level capability configuration.
Constructed by defect-config on EffectiveConfig.capabilities, overlaid with
providers.<p>.capabilities overrides, and finally passed to the session during
assembly in AgentCore::create_session.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.web_search: WebSearchCapabilityConfigImplementations§
Source§impl SessionCapabilitiesConfig
impl SessionCapabilitiesConfig
Sourcepub const fn with_web_search(web_search: WebSearchCapabilityConfig) -> Self
pub const fn with_web_search(web_search: WebSearchCapabilityConfig) -> Self
Construct from a single WebSearchCapabilityConfig. Cross-crate callers (e.g.
defect-config) need this entry point because the struct is #[non_exhaustive]
and cannot be built with a struct literal directly.
Trait Implementations§
Source§impl Clone for SessionCapabilitiesConfig
impl Clone for SessionCapabilitiesConfig
Source§fn clone(&self) -> SessionCapabilitiesConfig
fn clone(&self) -> SessionCapabilitiesConfig
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 moreimpl Copy for SessionCapabilitiesConfig
Source§impl Debug for SessionCapabilitiesConfig
impl Debug for SessionCapabilitiesConfig
Source§impl Default for SessionCapabilitiesConfig
impl Default for SessionCapabilitiesConfig
Source§fn default() -> SessionCapabilitiesConfig
fn default() -> SessionCapabilitiesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionCapabilitiesConfig
impl<'de> Deserialize<'de> for SessionCapabilitiesConfig
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
impl Eq for SessionCapabilitiesConfig
Source§impl PartialEq for SessionCapabilitiesConfig
impl PartialEq for SessionCapabilitiesConfig
Source§fn eq(&self, other: &SessionCapabilitiesConfig) -> bool
fn eq(&self, other: &SessionCapabilitiesConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionCapabilitiesConfig
Auto Trait Implementations§
impl Freeze for SessionCapabilitiesConfig
impl RefUnwindSafe for SessionCapabilitiesConfig
impl Send for SessionCapabilitiesConfig
impl Sync for SessionCapabilitiesConfig
impl Unpin for SessionCapabilitiesConfig
impl UnsafeUnpin for SessionCapabilitiesConfig
impl UnwindSafe for SessionCapabilitiesConfig
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