pub struct PromptMetadata {
pub prompt_version: u32,
pub generated_at: String,
pub node_id: String,
pub depends_on: Vec<String>,
pub artifact_paths: Vec<String>,
pub artifact_hashes: BTreeMap<String, String>,
}Expand description
YAML frontmatter metadata embedded in each generated prompt file.
Fields§
§prompt_version: u32Incremented on each regeneration.
generated_at: StringISO 8601 timestamp of generation.
node_id: StringStable node ID in the DAG, e.g. “prompt:memory-blob-store”.
depends_on: Vec<String>Source node IDs this prompt depends on.
artifact_paths: Vec<String>Source file paths (relative to repo root).
artifact_hashes: BTreeMap<String, String>Map of source file path to SHA-256 hex digest at generation time.
Trait Implementations§
Source§impl Clone for PromptMetadata
impl Clone for PromptMetadata
Source§fn clone(&self) -> PromptMetadata
fn clone(&self) -> PromptMetadata
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 PromptMetadata
impl Debug for PromptMetadata
Source§impl<'de> Deserialize<'de> for PromptMetadata
impl<'de> Deserialize<'de> for PromptMetadata
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 PromptMetadata
impl RefUnwindSafe for PromptMetadata
impl Send for PromptMetadata
impl Sync for PromptMetadata
impl Unpin for PromptMetadata
impl UnsafeUnpin for PromptMetadata
impl UnwindSafe for PromptMetadata
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