pub struct ResponseText(/* private fields */);Expand description
Text returned by the model.
Implementations§
Source§impl ResponseText
impl ResponseText
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the wrapper and returns the inner string.
Trait Implementations§
Source§impl AsRef<str> for ResponseText
impl AsRef<str> for ResponseText
Source§impl Clone for ResponseText
impl Clone for ResponseText
Source§fn clone(&self) -> ResponseText
fn clone(&self) -> ResponseText
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 ResponseText
impl Debug for ResponseText
Source§impl<'de> Deserialize<'de> for ResponseText
impl<'de> Deserialize<'de> for ResponseText
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 ResponseText
impl Display for ResponseText
Source§impl From<&str> for ResponseText
impl From<&str> for ResponseText
Source§impl From<String> for ResponseText
impl From<String> for ResponseText
Source§impl Hash for ResponseText
impl Hash for ResponseText
Source§impl PartialEq<&str> for ResponseText
impl PartialEq<&str> for ResponseText
Source§impl PartialEq<ResponseText> for &str
impl PartialEq<ResponseText> for &str
Source§impl PartialEq for ResponseText
impl PartialEq for ResponseText
Source§impl Serialize for ResponseText
impl Serialize for ResponseText
impl Eq for ResponseText
impl StructuralPartialEq for ResponseText
Auto Trait Implementations§
impl Freeze for ResponseText
impl RefUnwindSafe for ResponseText
impl Send for ResponseText
impl Sync for ResponseText
impl Unpin for ResponseText
impl UnsafeUnpin for ResponseText
impl UnwindSafe for ResponseText
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