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