pub struct SchemaDialect(/* private fields */);Implementations§
Source§impl SchemaDialect
impl SchemaDialect
pub const OPENAI_TOOL_PARAMETERS: &'static str = "openai_tool_parameters"
pub const OPENAI_STRICT_TOOL_PARAMETERS: &'static str = "openai_strict_tool_parameters"
pub const OPENAI_STRUCTURED_OUTPUT: &'static str = "openai_structured_output"
pub const ANTHROPIC_TOOL_INPUT: &'static str = "anthropic_tool_input"
pub const ANTHROPIC_OUTPUT_CONFIG_JSON_SCHEMA: &'static str = "anthropic_output_config_json_schema"
pub const BEDROCK_CLAUDE_OUTPUT_CONFIG_JSON_SCHEMA: &'static str = "bedrock_claude_output_config_json_schema"
pub const GOOGLE_SCHEMA: &'static str = "google_schema"
pub const JSON_PROMPT_SCHEMA: &'static str = "json_prompt_schema"
pub fn new(value: impl Into<String>) -> SchemaDialect
pub fn as_str(&self) -> &str
pub fn openai_tool_parameters() -> SchemaDialect
pub fn openai_strict_tool_parameters() -> SchemaDialect
pub fn openai_structured_output() -> SchemaDialect
pub fn anthropic_tool_input() -> SchemaDialect
pub fn anthropic_output_config_json_schema() -> SchemaDialect
pub fn bedrock_claude_output_config_json_schema() -> SchemaDialect
pub fn google_schema() -> SchemaDialect
Trait Implementations§
Source§impl Clone for SchemaDialect
impl Clone for SchemaDialect
Source§fn clone(&self) -> SchemaDialect
fn clone(&self) -> SchemaDialect
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 SchemaDialect
impl Debug for SchemaDialect
Source§impl<'de> Deserialize<'de> for SchemaDialect
impl<'de> Deserialize<'de> for SchemaDialect
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaDialect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaDialect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SchemaDialect
Source§impl From<&str> for SchemaDialect
impl From<&str> for SchemaDialect
Source§fn from(value: &str) -> SchemaDialect
fn from(value: &str) -> SchemaDialect
Converts to this type from the input type.
Source§impl From<String> for SchemaDialect
impl From<String> for SchemaDialect
Source§fn from(value: String) -> SchemaDialect
fn from(value: String) -> SchemaDialect
Converts to this type from the input type.
Source§impl Hash for SchemaDialect
impl Hash for SchemaDialect
Source§impl Ord for SchemaDialect
impl Ord for SchemaDialect
Source§fn cmp(&self, other: &SchemaDialect) -> Ordering
fn cmp(&self, other: &SchemaDialect) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SchemaDialect
impl PartialEq for SchemaDialect
Source§fn eq(&self, other: &SchemaDialect) -> bool
fn eq(&self, other: &SchemaDialect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SchemaDialect
impl PartialOrd for SchemaDialect
Source§impl Serialize for SchemaDialect
impl Serialize for SchemaDialect
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SchemaDialect
Auto Trait Implementations§
impl Freeze for SchemaDialect
impl RefUnwindSafe for SchemaDialect
impl Send for SchemaDialect
impl Sync for SchemaDialect
impl Unpin for SchemaDialect
impl UnsafeUnpin for SchemaDialect
impl UnwindSafe for SchemaDialect
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