pub struct CustomGrammarFormatParam {
pub definition: String,
pub syntax: GrammarSyntax,
}Available on crate feature
response-types only.Fields§
§definition: StringThe grammar definition.
syntax: GrammarSyntaxThe syntax of the grammar definition. One of lark or regex.
Trait Implementations§
Source§impl Clone for CustomGrammarFormatParam
Available on (crate features chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Clone for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Source§fn clone(&self) -> CustomGrammarFormatParam
fn clone(&self) -> CustomGrammarFormatParam
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomGrammarFormatParam
Available on (crate features chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Debug for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Source§impl Default for CustomGrammarFormatParam
Available on (crate features chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Default for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Source§fn default() -> CustomGrammarFormatParam
fn default() -> CustomGrammarFormatParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomGrammarFormatParam
Available on (crate features chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl<'de> Deserialize<'de> for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.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
Source§impl PartialEq for CustomGrammarFormatParam
Available on (crate features chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl PartialEq for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Source§impl Serialize for CustomGrammarFormatParam
Available on (crate features chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Serialize for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.impl StructuralPartialEq for CustomGrammarFormatParam
Available on (crate features
chat-completion-types or response-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Auto Trait Implementations§
impl Freeze for CustomGrammarFormatParam
impl RefUnwindSafe for CustomGrammarFormatParam
impl Send for CustomGrammarFormatParam
impl Sync for CustomGrammarFormatParam
impl Unpin for CustomGrammarFormatParam
impl UnwindSafe for CustomGrammarFormatParam
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