pub struct PromptIdentity {
pub tier: String,
pub subject: Option<String>,
}Expand description
Identity information for prompt injection.
When provided to build_system_prompt(), an identity block is included
in the cacheable (stable) section of the system prompt.
Fields§
§tier: StringTier label (e.g. “pro”, “free”, “anonymous”).
subject: Option<String>Subject identifier (e.g. “user@example.com”). None for anonymous.
Trait Implementations§
Source§impl Clone for PromptIdentity
impl Clone for PromptIdentity
Source§fn clone(&self) -> PromptIdentity
fn clone(&self) -> PromptIdentity
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 PromptIdentity
impl RefUnwindSafe for PromptIdentity
impl Send for PromptIdentity
impl Sync for PromptIdentity
impl Unpin for PromptIdentity
impl UnsafeUnpin for PromptIdentity
impl UnwindSafe for PromptIdentity
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