pub struct InstructionsText(/* private fields */);Expand description
Developer-provided system instructions for a session.
Implementations§
Source§impl InstructionsText
impl InstructionsText
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 InstructionsText
impl AsRef<str> for InstructionsText
Source§impl Clone for InstructionsText
impl Clone for InstructionsText
Source§fn clone(&self) -> InstructionsText
fn clone(&self) -> InstructionsText
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 InstructionsText
impl Debug for InstructionsText
Source§impl<'de> Deserialize<'de> for InstructionsText
impl<'de> Deserialize<'de> for InstructionsText
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 InstructionsText
impl Display for InstructionsText
Source§impl From<&str> for InstructionsText
impl From<&str> for InstructionsText
Source§impl From<String> for InstructionsText
impl From<String> for InstructionsText
Source§impl Hash for InstructionsText
impl Hash for InstructionsText
Source§impl PartialEq<&str> for InstructionsText
impl PartialEq<&str> for InstructionsText
Source§impl PartialEq<InstructionsText> for &str
impl PartialEq<InstructionsText> for &str
Source§impl PartialEq for InstructionsText
impl PartialEq for InstructionsText
Source§impl Serialize for InstructionsText
impl Serialize for InstructionsText
Source§impl TryFrom<InstructionsText> for SystemInstructions
impl TryFrom<InstructionsText> for SystemInstructions
impl Eq for InstructionsText
impl StructuralPartialEq for InstructionsText
Auto Trait Implementations§
impl Freeze for InstructionsText
impl RefUnwindSafe for InstructionsText
impl Send for InstructionsText
impl Sync for InstructionsText
impl Unpin for InstructionsText
impl UnsafeUnpin for InstructionsText
impl UnwindSafe for InstructionsText
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