#[non_exhaustive]pub enum ResponseCustomToolGrammarSyntax {
Lark,
Regex,
}Expand description
EN: Grammar syntax supported by Responses API custom tools. 中文:Responses API custom 工具支持的 grammar 语法。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lark
EN: Lark grammar syntax. 中文:Lark grammar 语法。
Regex
EN: Regex grammar syntax. 中文:Regex grammar 语法。
Trait Implementations§
Source§impl Clone for ResponseCustomToolGrammarSyntax
impl Clone for ResponseCustomToolGrammarSyntax
Source§fn clone(&self) -> ResponseCustomToolGrammarSyntax
fn clone(&self) -> ResponseCustomToolGrammarSyntax
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 ResponseCustomToolGrammarSyntax
Source§impl<'de> Deserialize<'de> for ResponseCustomToolGrammarSyntax
impl<'de> Deserialize<'de> for ResponseCustomToolGrammarSyntax
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 ResponseCustomToolGrammarSyntax
Source§impl PartialEq for ResponseCustomToolGrammarSyntax
impl PartialEq for ResponseCustomToolGrammarSyntax
Source§fn eq(&self, other: &ResponseCustomToolGrammarSyntax) -> bool
fn eq(&self, other: &ResponseCustomToolGrammarSyntax) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseCustomToolGrammarSyntax
Auto Trait Implementations§
impl Freeze for ResponseCustomToolGrammarSyntax
impl RefUnwindSafe for ResponseCustomToolGrammarSyntax
impl Send for ResponseCustomToolGrammarSyntax
impl Sync for ResponseCustomToolGrammarSyntax
impl Unpin for ResponseCustomToolGrammarSyntax
impl UnsafeUnpin for ResponseCustomToolGrammarSyntax
impl UnwindSafe for ResponseCustomToolGrammarSyntax
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.