#[non_exhaustive]pub struct ResponsePrompt {
pub id: String,
pub variables: Option<Option<BTreeMap<String, ResponsePromptVariables>>>,
pub version: Option<Option<String>>,
pub rest: Rest,
}Expand description
Source: openai/types/responses/response_prompt.py, ResponsePrompt.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§variables: Option<Option<BTreeMap<String, ResponsePromptVariables>>>§version: Option<Option<String>>§rest: RestImplementations§
Source§impl ResponsePrompt
impl ResponsePrompt
Sourcepub fn builder(id: String) -> ResponsePromptBuilder
pub fn builder(id: String) -> ResponsePromptBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ResponsePrompt
impl Clone for ResponsePrompt
Source§impl Debug for ResponsePrompt
impl Debug for ResponsePrompt
Source§impl DeclaredFields for ResponsePrompt
impl DeclaredFields for ResponsePrompt
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponsePrompt
impl<'de> Deserialize<'de> for ResponsePrompt
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 ResponsePrompt
impl PartialEq for ResponsePrompt
Source§impl Serialize for ResponsePrompt
impl Serialize for ResponsePrompt
impl StructuralPartialEq for ResponsePrompt
Auto Trait Implementations§
impl Freeze for ResponsePrompt
impl RefUnwindSafe for ResponsePrompt
impl Send for ResponsePrompt
impl Sync for ResponsePrompt
impl Unpin for ResponsePrompt
impl UnsafeUnpin for ResponsePrompt
impl UnwindSafe for ResponsePrompt
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