Struct kind_openai::UnstructuredString
source · pub struct UnstructuredString(/* private fields */);
Expand description
A string that, when deserialize, bypasses the normal deserialization process and instead returns the raw string. This is useful when deserializing data that might be a string or might be a JSON string, and you want to have a unified interface over both.
Trait Implementations§
source§impl AsRef<str> for UnstructuredString
impl AsRef<str> for UnstructuredString
source§impl<'de> Deserialize<'de> for UnstructuredString
impl<'de> Deserialize<'de> for UnstructuredString
source§fn deserialize<D>(deserializer: D) -> Result<UnstructuredString, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<UnstructuredString, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<UnstructuredString> for String
impl From<UnstructuredString> for String
source§fn from(s: UnstructuredString) -> String
fn from(s: UnstructuredString) -> String
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnstructuredString
impl RefUnwindSafe for UnstructuredString
impl Send for UnstructuredString
impl Sync for UnstructuredString
impl Unpin for UnstructuredString
impl UnwindSafe for UnstructuredString
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