pub enum SampleContent {
Text(String),
Array(Vec<String>),
}Expand description
Sample content input.
Variants§
Text(String)
Text prompt.
Array(Vec<String>)
An array of strings, a token list, or an array of token lists.
Trait Implementations§
Source§impl Clone for SampleContent
impl Clone for SampleContent
Source§fn clone(&self) -> SampleContent
fn clone(&self) -> SampleContent
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 SampleContent
impl Debug for SampleContent
Source§impl Default for SampleContent
impl Default for SampleContent
Source§impl<'de> Deserialize<'de> for SampleContent
impl<'de> Deserialize<'de> for SampleContent
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 PartialEq for SampleContent
impl PartialEq for SampleContent
Source§impl Serialize for SampleContent
impl Serialize for SampleContent
impl StructuralPartialEq for SampleContent
Auto Trait Implementations§
impl Freeze for SampleContent
impl RefUnwindSafe for SampleContent
impl Send for SampleContent
impl Sync for SampleContent
impl Unpin for SampleContent
impl UnwindSafe for SampleContent
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