pub struct PromptBlock {
pub name: String,
pub text: String,
pub stability: PromptStability,
}Expand description
A rendered prompt section with caching metadata.
Fields§
§name: String§text: String§stability: PromptStabilityImplementations§
Trait Implementations§
Source§impl Clone for PromptBlock
impl Clone for PromptBlock
Source§fn clone(&self) -> PromptBlock
fn clone(&self) -> PromptBlock
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 moreAuto Trait Implementations§
impl Freeze for PromptBlock
impl RefUnwindSafe for PromptBlock
impl Send for PromptBlock
impl Sync for PromptBlock
impl Unpin for PromptBlock
impl UnsafeUnpin for PromptBlock
impl UnwindSafe for PromptBlock
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