pub struct TurnPromptAttachment {
pub local_image_path: PathBuf,
pub placeholder: String,
}Expand description
One local image attachment referenced from a prompt placeholder.
Serialized JSON consumers must match fields by name; object key order is not part of this transport contract.
Fields§
§local_image_path: PathBufLocal file path persisted for transport upload.
placeholder: StringInline placeholder token such as [Image #1] used in prompt text.
Trait Implementations§
Source§impl Clone for TurnPromptAttachment
impl Clone for TurnPromptAttachment
Source§fn clone(&self) -> TurnPromptAttachment
fn clone(&self) -> TurnPromptAttachment
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 moreSource§impl Debug for TurnPromptAttachment
impl Debug for TurnPromptAttachment
Source§impl<'de> Deserialize<'de> for TurnPromptAttachment
impl<'de> Deserialize<'de> for TurnPromptAttachment
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
impl Eq for TurnPromptAttachment
Source§impl PartialEq for TurnPromptAttachment
impl PartialEq for TurnPromptAttachment
Source§impl Serialize for TurnPromptAttachment
impl Serialize for TurnPromptAttachment
impl StructuralPartialEq for TurnPromptAttachment
Auto Trait Implementations§
impl Freeze for TurnPromptAttachment
impl RefUnwindSafe for TurnPromptAttachment
impl Send for TurnPromptAttachment
impl Sync for TurnPromptAttachment
impl Unpin for TurnPromptAttachment
impl UnsafeUnpin for TurnPromptAttachment
impl UnwindSafe for TurnPromptAttachment
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