pub struct TextPromptModel {
pub prompt: String,
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 type: Type,
}Fields§
§prompt: String§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.
type: TypeImplementations§
Trait Implementations§
Source§impl Clone for TextPromptModel
impl Clone for TextPromptModel
Source§fn clone(&self) -> TextPromptModel
fn clone(&self) -> TextPromptModel
Returns a copy 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 TextPromptModel
impl Debug for TextPromptModel
Source§impl Default for TextPromptModel
impl Default for TextPromptModel
Source§fn default() -> TextPromptModel
fn default() -> TextPromptModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextPromptModel
impl<'de> Deserialize<'de> for TextPromptModel
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 TextPromptModel
impl PartialEq for TextPromptModel
Source§impl Serialize for TextPromptModel
impl Serialize for TextPromptModel
impl StructuralPartialEq for TextPromptModel
Auto Trait Implementations§
impl Freeze for TextPromptModel
impl RefUnwindSafe for TextPromptModel
impl Send for TextPromptModel
impl Sync for TextPromptModel
impl Unpin for TextPromptModel
impl UnwindSafe for TextPromptModel
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