pub struct PromptText(/* private fields */);Expand description
UTF-8 prompt text sent to the model.
Implementations§
Source§impl PromptText
impl PromptText
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 PromptText
impl AsRef<str> for PromptText
Source§impl Clone for PromptText
impl Clone for PromptText
Source§fn clone(&self) -> PromptText
fn clone(&self) -> PromptText
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 PromptText
impl Debug for PromptText
Source§impl<'de> Deserialize<'de> for PromptText
impl<'de> Deserialize<'de> for PromptText
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 PromptText
impl Display for PromptText
Source§impl From<&str> for PromptText
impl From<&str> for PromptText
Source§impl From<String> for PromptText
impl From<String> for PromptText
Source§impl Hash for PromptText
impl Hash for PromptText
Source§impl PartialEq<&str> for PromptText
impl PartialEq<&str> for PromptText
Source§impl PartialEq<PromptText> for &str
impl PartialEq<PromptText> for &str
Source§impl PartialEq for PromptText
impl PartialEq for PromptText
Source§impl Serialize for PromptText
impl Serialize for PromptText
Source§impl TryFrom<PromptText> for Prompt
impl TryFrom<PromptText> for Prompt
impl Eq for PromptText
impl StructuralPartialEq for PromptText
Auto Trait Implementations§
impl Freeze for PromptText
impl RefUnwindSafe for PromptText
impl Send for PromptText
impl Sync for PromptText
impl Unpin for PromptText
impl UnsafeUnpin for PromptText
impl UnwindSafe for PromptText
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