pub struct TextPrompt {
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: String,
}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.
prompt: StringImplementations§
Source§impl TextPrompt
impl TextPrompt
Sourcepub fn builder() -> TextPromptBuilder
pub fn builder() -> TextPromptBuilder
Create an instance of TextPrompt using the builder syntax
Trait Implementations§
Source§impl Clone for TextPrompt
impl Clone for TextPrompt
Source§fn clone(&self) -> TextPrompt
fn clone(&self) -> TextPrompt
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextPrompt
impl Debug for TextPrompt
Source§impl Default for TextPrompt
impl Default for TextPrompt
Source§fn default() -> TextPrompt
fn default() -> TextPrompt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextPrompt
impl<'de> Deserialize<'de> for TextPrompt
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 TextPrompt
impl PartialEq for TextPrompt
Source§impl Serialize for TextPrompt
impl Serialize for TextPrompt
impl StructuralPartialEq for TextPrompt
Auto Trait Implementations§
impl Freeze for TextPrompt
impl RefUnwindSafe for TextPrompt
impl Send for TextPrompt
impl Sync for TextPrompt
impl Unpin for TextPrompt
impl UnwindSafe for TextPrompt
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)