pub enum TurnPromptContentPart<'prompt> {
Attachment(&'prompt TurnPromptAttachment),
OrphanAttachment(&'prompt TurnPromptAttachment),
Text(&'prompt str),
}Expand description
Ordered content piece produced when serializing one turn prompt.
Variants§
Attachment(&'prompt TurnPromptAttachment)
One local image attachment referenced from the prompt text.
OrphanAttachment(&'prompt TurnPromptAttachment)
One attachment whose placeholder no longer appears in the prompt text.
Text(&'prompt str)
One plain-text span from the prompt.
Trait Implementations§
Source§impl<'prompt> Clone for TurnPromptContentPart<'prompt>
impl<'prompt> Clone for TurnPromptContentPart<'prompt>
Source§fn clone(&self) -> TurnPromptContentPart<'prompt>
fn clone(&self) -> TurnPromptContentPart<'prompt>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'prompt> Copy for TurnPromptContentPart<'prompt>
Source§impl<'prompt> Debug for TurnPromptContentPart<'prompt>
impl<'prompt> Debug for TurnPromptContentPart<'prompt>
impl<'prompt> Eq for TurnPromptContentPart<'prompt>
Source§impl<'prompt> PartialEq for TurnPromptContentPart<'prompt>
impl<'prompt> PartialEq for TurnPromptContentPart<'prompt>
Source§fn eq(&self, other: &TurnPromptContentPart<'prompt>) -> bool
fn eq(&self, other: &TurnPromptContentPart<'prompt>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'prompt> StructuralPartialEq for TurnPromptContentPart<'prompt>
Auto Trait Implementations§
impl<'prompt> Freeze for TurnPromptContentPart<'prompt>
impl<'prompt> RefUnwindSafe for TurnPromptContentPart<'prompt>
impl<'prompt> Send for TurnPromptContentPart<'prompt>
impl<'prompt> Sync for TurnPromptContentPart<'prompt>
impl<'prompt> Unpin for TurnPromptContentPart<'prompt>
impl<'prompt> UnsafeUnpin for TurnPromptContentPart<'prompt>
impl<'prompt> UnwindSafe for TurnPromptContentPart<'prompt>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.