pub struct CompiledPrompt {
pub text: String,
pub provenance: PromptProvenance,
}Expand description
A compiled prompt ready for submission to the LLM (PSP-7 §5).
Replaces raw string concatenation with a typed container that carries the prompt text alongside its provenance metadata.
Fields§
§text: StringThe final prompt text to send to the LLM.
provenance: PromptProvenanceProvenance metadata for observability.
Trait Implementations§
Source§impl Clone for CompiledPrompt
impl Clone for CompiledPrompt
Source§fn clone(&self) -> CompiledPrompt
fn clone(&self) -> CompiledPrompt
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 CompiledPrompt
impl Debug for CompiledPrompt
Source§impl<'de> Deserialize<'de> for CompiledPrompt
impl<'de> Deserialize<'de> for CompiledPrompt
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
Auto Trait Implementations§
impl Freeze for CompiledPrompt
impl RefUnwindSafe for CompiledPrompt
impl Send for CompiledPrompt
impl Sync for CompiledPrompt
impl Unpin for CompiledPrompt
impl UnsafeUnpin for CompiledPrompt
impl UnwindSafe for CompiledPrompt
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