#[non_exhaustive]pub struct WebSearchCapabilityConfig {
pub mode: WebSearchCapabilityMode,
}Expand description
Configuration for a single capability. Reserved for future capabilities of the same
form, such as image_generation / code_execution.
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.mode: WebSearchCapabilityModeImplementations§
Source§impl WebSearchCapabilityConfig
impl WebSearchCapabilityConfig
Sourcepub const fn new(mode: WebSearchCapabilityMode) -> Self
pub const fn new(mode: WebSearchCapabilityMode) -> Self
Constructs from a single mode. Cross-crate callers 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 WebSearchCapabilityConfig
impl Clone for WebSearchCapabilityConfig
Source§fn clone(&self) -> WebSearchCapabilityConfig
fn clone(&self) -> WebSearchCapabilityConfig
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 WebSearchCapabilityConfig
Source§impl Debug for WebSearchCapabilityConfig
impl Debug for WebSearchCapabilityConfig
Source§impl Default for WebSearchCapabilityConfig
impl Default for WebSearchCapabilityConfig
Source§fn default() -> WebSearchCapabilityConfig
fn default() -> WebSearchCapabilityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebSearchCapabilityConfig
impl<'de> Deserialize<'de> for WebSearchCapabilityConfig
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 WebSearchCapabilityConfig
Source§impl PartialEq for WebSearchCapabilityConfig
impl PartialEq for WebSearchCapabilityConfig
Source§fn eq(&self, other: &WebSearchCapabilityConfig) -> bool
fn eq(&self, other: &WebSearchCapabilityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebSearchCapabilityConfig
Auto Trait Implementations§
impl Freeze for WebSearchCapabilityConfig
impl RefUnwindSafe for WebSearchCapabilityConfig
impl Send for WebSearchCapabilityConfig
impl Sync for WebSearchCapabilityConfig
impl Unpin for WebSearchCapabilityConfig
impl UnsafeUnpin for WebSearchCapabilityConfig
impl UnwindSafe for WebSearchCapabilityConfig
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