pub enum ResponseFormats {
Text,
JsonObject,
JsonSchema,
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for ResponseFormats
impl Clone for ResponseFormats
Source§fn clone(&self) -> ResponseFormats
fn clone(&self) -> ResponseFormats
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 ResponseFormats
impl Debug for ResponseFormats
Source§impl Default for ResponseFormats
impl Default for ResponseFormats
Source§fn default() -> ResponseFormats
fn default() -> ResponseFormats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseFormats
impl<'de> Deserialize<'de> for ResponseFormats
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 Display for ResponseFormats
impl Display for ResponseFormats
Source§impl Hash for ResponseFormats
impl Hash for ResponseFormats
Source§impl Ord for ResponseFormats
impl Ord for ResponseFormats
Source§fn cmp(&self, other: &ResponseFormats) -> Ordering
fn cmp(&self, other: &ResponseFormats) -> Ordering
1.21.0 · 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 ResponseFormats
impl PartialEq for ResponseFormats
Source§impl PartialOrd for ResponseFormats
impl PartialOrd for ResponseFormats
Source§impl Serialize for ResponseFormats
impl Serialize for ResponseFormats
impl Copy for ResponseFormats
impl Eq for ResponseFormats
impl StructuralPartialEq for ResponseFormats
Auto Trait Implementations§
impl Freeze for ResponseFormats
impl RefUnwindSafe for ResponseFormats
impl Send for ResponseFormats
impl Sync for ResponseFormats
impl Unpin for ResponseFormats
impl UnsafeUnpin for ResponseFormats
impl UnwindSafe for ResponseFormats
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.