pub struct SystemContentBlock {
pub text: String,
pub cache_point: Option<CachePointBlock>,
}Expand description
A system-prompt content entry: either text or a prompt-cache breakpoint.
Construct with SystemContentBlock::text or
SystemContentBlock::cache_point.
Fields§
§text: String§cache_point: Option<CachePointBlock>When Some, this entry is a prompt-cache breakpoint (text is ignored).
Implementations§
Trait Implementations§
Source§impl Clone for SystemContentBlock
impl Clone for SystemContentBlock
Source§fn clone(&self) -> SystemContentBlock
fn clone(&self) -> SystemContentBlock
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 SystemContentBlock
impl RefUnwindSafe for SystemContentBlock
impl Send for SystemContentBlock
impl Sync for SystemContentBlock
impl Unpin for SystemContentBlock
impl UnsafeUnpin for SystemContentBlock
impl UnwindSafe for SystemContentBlock
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