pub struct BasePrompt {
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>>>,
}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 prompt has no dependencies.
Implementations§
Source§impl BasePrompt
impl BasePrompt
Sourcepub fn builder() -> BasePromptBuilder
pub fn builder() -> BasePromptBuilder
Create an instance of BasePrompt using the builder syntax
Trait Implementations§
Source§impl Clone for BasePrompt
impl Clone for BasePrompt
Source§fn clone(&self) -> BasePrompt
fn clone(&self) -> BasePrompt
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 moreSource§impl Debug for BasePrompt
impl Debug for BasePrompt
Source§impl Default for BasePrompt
impl Default for BasePrompt
Source§fn default() -> BasePrompt
fn default() -> BasePrompt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BasePrompt
impl<'de> Deserialize<'de> for BasePrompt
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 BasePrompt
impl PartialEq for BasePrompt
Source§impl Serialize for BasePrompt
impl Serialize for BasePrompt
impl StructuralPartialEq for BasePrompt
Auto Trait Implementations§
impl Freeze for BasePrompt
impl RefUnwindSafe for BasePrompt
impl Send for BasePrompt
impl Sync for BasePrompt
impl Unpin for BasePrompt
impl UnwindSafe for BasePrompt
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