pub struct SystemPromptsNamespace { /* private fields */ }Expand description
System prompts operations namespace
Implementations§
Source§impl SystemPromptsNamespace
impl SystemPromptsNamespace
Sourcepub async fn insert(
&self,
system_prompt: InsertSystemPromptBody,
) -> Result<Value>
pub async fn insert( &self, system_prompt: InsertSystemPromptBody, ) -> Result<Value>
Insert a system prompt
Sourcepub async fn get(&self, id: &str) -> Result<SystemPrompt>
pub async fn get(&self, id: &str) -> Result<SystemPrompt>
Get a system prompt
Sourcepub async fn get_all(&self) -> Result<Vec<SystemPrompt>>
pub async fn get_all(&self) -> Result<Vec<SystemPrompt>>
Get all system prompts
Sourcepub async fn update(&self, system_prompt: SystemPrompt) -> Result<Value>
pub async fn update(&self, system_prompt: SystemPrompt) -> Result<Value>
Update a system prompt
Sourcepub async fn validate(
&self,
system_prompt: SystemPrompt,
) -> Result<SystemPromptValidationResponse>
pub async fn validate( &self, system_prompt: SystemPrompt, ) -> Result<SystemPromptValidationResponse>
Validate a system prompt
Trait Implementations§
Source§impl Clone for SystemPromptsNamespace
impl Clone for SystemPromptsNamespace
Source§fn clone(&self) -> SystemPromptsNamespace
fn clone(&self) -> SystemPromptsNamespace
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 !RefUnwindSafe for SystemPromptsNamespace
impl !UnwindSafe for SystemPromptsNamespace
impl Freeze for SystemPromptsNamespace
impl Send for SystemPromptsNamespace
impl Sync for SystemPromptsNamespace
impl Unpin for SystemPromptsNamespace
impl UnsafeUnpin for SystemPromptsNamespace
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