pub enum ResponsesApiWebSearchAction {
Search {
queries: Option<Vec<String>>,
query: Option<String>,
},
OpenPage {
url: Option<String>,
},
FindInPage {
pattern: Option<String>,
url: Option<String>,
},
Other,
}Expand description
ResponsesApiWebSearchAction
JSON schema
{
"oneOf": [
{
"title": "SearchResponsesApiWebSearchAction",
"type": "object",
"required": [
"type"
],
"properties": {
"queries": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"query": {
"type": [
"string",
"null"
]
},
"type": {
"title": "SearchResponsesApiWebSearchActionType",
"type": "string",
"enum": [
"search"
]
}
}
},
{
"title": "OpenPageResponsesApiWebSearchAction",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "OpenPageResponsesApiWebSearchActionType",
"type": "string",
"enum": [
"open_page"
]
},
"url": {
"type": [
"string",
"null"
]
}
}
},
{
"title": "FindInPageResponsesApiWebSearchAction",
"type": "object",
"required": [
"type"
],
"properties": {
"pattern": {
"type": [
"string",
"null"
]
},
"type": {
"title": "FindInPageResponsesApiWebSearchActionType",
"type": "string",
"enum": [
"find_in_page"
]
},
"url": {
"type": [
"string",
"null"
]
}
}
},
{
"title": "OtherResponsesApiWebSearchAction",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "OtherResponsesApiWebSearchActionType",
"type": "string",
"enum": [
"other"
]
}
}
}
]
}Variants§
Search
SearchResponsesApiWebSearchAction
OpenPage
OpenPageResponsesApiWebSearchAction
FindInPage
FindInPageResponsesApiWebSearchAction
Other
Trait Implementations§
Source§impl Clone for ResponsesApiWebSearchAction
impl Clone for ResponsesApiWebSearchAction
Source§fn clone(&self) -> ResponsesApiWebSearchAction
fn clone(&self) -> ResponsesApiWebSearchAction
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 ResponsesApiWebSearchAction
impl Debug for ResponsesApiWebSearchAction
Source§impl<'de> Deserialize<'de> for ResponsesApiWebSearchAction
impl<'de> Deserialize<'de> for ResponsesApiWebSearchAction
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
Auto Trait Implementations§
impl Freeze for ResponsesApiWebSearchAction
impl RefUnwindSafe for ResponsesApiWebSearchAction
impl Send for ResponsesApiWebSearchAction
impl Sync for ResponsesApiWebSearchAction
impl Unpin for ResponsesApiWebSearchAction
impl UnsafeUnpin for ResponsesApiWebSearchAction
impl UnwindSafe for ResponsesApiWebSearchAction
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