pub struct PromptOneOf {
pub name: String,
pub version: i32,
pub config: Option<Value>,
pub labels: Vec<String>,
pub tags: Vec<String>,
pub commit_message: Option<Option<String>>,
pub resolution_graph: Option<Option<HashMap<String, Value>>>,
pub prompt: Vec<ChatMessageWithPlaceholders>,
pub type: Type,
}Fields§
§name: String§version: i32§config: Option<Value>§labels: Vec<String>List of deployment labels of this prompt version.
List of tags. Used to filter via UI and API. The same across versions of a prompt.
commit_message: Option<Option<String>>Commit message for this prompt version.
resolution_graph: Option<Option<HashMap<String, Value>>>The dependency resolution graph for the current prompt. Null if the prompt has no dependencies or if resolve=false was used.
prompt: Vec<ChatMessageWithPlaceholders>§type: TypeImplementations§
Source§impl PromptOneOf
impl PromptOneOf
Sourcepub fn builder() -> PromptOneOfBuilder
pub fn builder() -> PromptOneOfBuilder
Create an instance of PromptOneOf using the builder syntax
Trait Implementations§
Source§impl Clone for PromptOneOf
impl Clone for PromptOneOf
Source§fn clone(&self) -> PromptOneOf
fn clone(&self) -> PromptOneOf
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 moreSource§impl Debug for PromptOneOf
impl Debug for PromptOneOf
Source§impl Default for PromptOneOf
impl Default for PromptOneOf
Source§fn default() -> PromptOneOf
fn default() -> PromptOneOf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptOneOf
impl<'de> Deserialize<'de> for PromptOneOf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PromptOneOf
impl PartialEq for PromptOneOf
Source§impl Serialize for PromptOneOf
impl Serialize for PromptOneOf
impl StructuralPartialEq for PromptOneOf
Auto Trait Implementations§
impl Freeze for PromptOneOf
impl RefUnwindSafe for PromptOneOf
impl Send for PromptOneOf
impl Sync for PromptOneOf
impl Unpin for PromptOneOf
impl UnsafeUnpin for PromptOneOf
impl UnwindSafe for PromptOneOf
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