pub struct PromptStack { /* private fields */ }Implementations§
Source§impl PromptStack
impl PromptStack
pub fn new( modules: Vec<PromptModule>, context: SelectionContext, ) -> Result<Self, PromptError>
pub fn modules(&self) -> &[PromptModule]
pub fn composed(&self) -> &str
Sourcepub fn validate_hot_reload(
&self,
candidate: &PromptStack,
) -> Result<(), PromptError>
pub fn validate_hot_reload( &self, candidate: &PromptStack, ) -> Result<(), PromptError>
Validate a candidate stack completely before the caller atomically swaps it.
pub fn provenance( &self, delegation_policy_digest: impl Into<String>, ) -> PromptProvenance
pub fn inspect(&self, enforcement_mode: EnforcementMode) -> PromptInspection<'_>
Trait Implementations§
Source§impl Clone for PromptStack
impl Clone for PromptStack
Source§fn clone(&self) -> PromptStack
fn clone(&self) -> PromptStack
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 moreAuto Trait Implementations§
impl Freeze for PromptStack
impl RefUnwindSafe for PromptStack
impl Send for PromptStack
impl Sync for PromptStack
impl Unpin for PromptStack
impl UnsafeUnpin for PromptStack
impl UnwindSafe for PromptStack
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