#[non_exhaustive]pub struct WebSearchTool20250305 {
pub name: WebSearchTool20250305Name,
pub type_: WebSearchTool20250305Type,
pub allowed_callers: Option<Vec<AllowedCaller>>,
pub allowed_domains: Option<Vec<String>>,
pub blocked_domains: Option<Vec<String>>,
pub cache_control: Option<CacheControl>,
pub defer_loading: Option<bool>,
pub max_uses: Option<i64>,
pub strict: Option<bool>,
pub user_location: Option<UserLocation>,
pub rest: Rest,
}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.name: WebSearchTool20250305Name§type_: WebSearchTool20250305Type§allowed_callers: Option<Vec<AllowedCaller>>§allowed_domains: Option<Vec<String>>§blocked_domains: Option<Vec<String>>§cache_control: Option<CacheControl>§defer_loading: Option<bool>§max_uses: Option<i64>§strict: Option<bool>§user_location: Option<UserLocation>§rest: RestImplementations§
Source§impl WebSearchTool20250305
impl WebSearchTool20250305
Sourcepub fn builder(
name: WebSearchTool20250305Name,
type_: WebSearchTool20250305Type,
) -> WebSearchTool20250305Builder
pub fn builder( name: WebSearchTool20250305Name, type_: WebSearchTool20250305Type, ) -> WebSearchTool20250305Builder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for WebSearchTool20250305
impl Clone for WebSearchTool20250305
Source§impl Debug for WebSearchTool20250305
impl Debug for WebSearchTool20250305
Source§impl DeclaredFields for WebSearchTool20250305
impl DeclaredFields for WebSearchTool20250305
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for WebSearchTool20250305
impl<'de> Deserialize<'de> for WebSearchTool20250305
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 WebSearchTool20250305
Source§impl PartialEq for WebSearchTool20250305
impl PartialEq for WebSearchTool20250305
Source§impl Serialize for WebSearchTool20250305
impl Serialize for WebSearchTool20250305
impl StructuralPartialEq for WebSearchTool20250305
Auto Trait Implementations§
impl Freeze for WebSearchTool20250305
impl RefUnwindSafe for WebSearchTool20250305
impl Send for WebSearchTool20250305
impl Sync for WebSearchTool20250305
impl Unpin for WebSearchTool20250305
impl UnsafeUnpin for WebSearchTool20250305
impl UnwindSafe for WebSearchTool20250305
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