pub struct OpenAiCreateResponseRequest {
pub method: HttpMethod,
pub path: PathParameters,
pub query: QueryParameters,
pub headers: RequestHeaders,
pub body: RequestBody,
}Expand description
Request descriptor for OpenAI responses.create endpoint.
Fields§
§method: HttpMethodHTTP method.
path: PathParametersPath parameters.
query: QueryParametersQuery parameters.
headers: RequestHeadersRequest headers.
body: RequestBodyRequest body.
Trait Implementations§
Source§impl Clone for OpenAiCreateResponseRequest
impl Clone for OpenAiCreateResponseRequest
Source§fn clone(&self) -> OpenAiCreateResponseRequest
fn clone(&self) -> OpenAiCreateResponseRequest
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 OpenAiCreateResponseRequest
impl Debug for OpenAiCreateResponseRequest
Source§impl<'de> Deserialize<'de> for OpenAiCreateResponseRequest
impl<'de> Deserialize<'de> for OpenAiCreateResponseRequest
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 TryFrom<&ClaudeCreateMessageRequest> for OpenAiCreateResponseRequest
impl TryFrom<&ClaudeCreateMessageRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &ClaudeCreateMessageRequest) -> Result<Self, TransformError>
fn try_from(value: &ClaudeCreateMessageRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiChatCompletionsRequest> for OpenAiCreateResponseRequest
impl TryFrom<&OpenAiChatCompletionsRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &OpenAiChatCompletionsRequest,
) -> Result<Self, TransformError>
fn try_from( value: &OpenAiChatCompletionsRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateImageEditRequest> for OpenAiCreateResponseRequest
impl TryFrom<&OpenAiCreateImageEditRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &OpenAiCreateImageEditRequest,
) -> Result<Self, TransformError>
fn try_from( value: &OpenAiCreateImageEditRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateImageRequest> for OpenAiCreateResponseRequest
impl TryFrom<&OpenAiCreateImageRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &OpenAiCreateImageRequest) -> Result<Self, TransformError>
fn try_from(value: &OpenAiCreateImageRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseRequest> for ClaudeCreateMessageRequest
impl TryFrom<&OpenAiCreateResponseRequest> for ClaudeCreateMessageRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseRequest> for GeminiStreamGenerateContentRequest
impl TryFrom<&OpenAiCreateResponseRequest> for GeminiStreamGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseRequest> for OpenAiChatCompletionsRequest
impl TryFrom<&OpenAiCreateResponseRequest> for OpenAiChatCompletionsRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseRequest> for OpenAiCreateResponseWebSocketClientMessage
impl TryFrom<&OpenAiCreateResponseRequest> for OpenAiCreateResponseWebSocketClientMessage
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseRequest> for OpenAiCreateResponseWebSocketConnectRequest
impl TryFrom<&OpenAiCreateResponseRequest> for OpenAiCreateResponseWebSocketConnectRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: &OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseWebSocketClientMessage> for OpenAiCreateResponseRequest
impl TryFrom<&OpenAiCreateResponseWebSocketClientMessage> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &OpenAiCreateResponseWebSocketClientMessage,
) -> Result<Self, TransformError>
fn try_from( value: &OpenAiCreateResponseWebSocketClientMessage, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&OpenAiCreateResponseWebSocketConnectRequest> for OpenAiCreateResponseRequest
impl TryFrom<&OpenAiCreateResponseWebSocketConnectRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &OpenAiCreateResponseWebSocketConnectRequest,
) -> Result<Self, TransformError>
fn try_from( value: &OpenAiCreateResponseWebSocketConnectRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<ClaudeCreateMessageRequest> for OpenAiCreateResponseRequest
impl TryFrom<ClaudeCreateMessageRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: ClaudeCreateMessageRequest) -> Result<Self, TransformError>
fn try_from(value: ClaudeCreateMessageRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiGenerateContentRequest> for OpenAiCreateResponseRequest
impl TryFrom<GeminiGenerateContentRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiStreamGenerateContentRequest> for OpenAiCreateResponseRequest
impl TryFrom<GeminiStreamGenerateContentRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GeminiStreamGenerateContentRequest,
) -> Result<Self, TransformError>
fn try_from( value: GeminiStreamGenerateContentRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiChatCompletionsRequest> for OpenAiCreateResponseRequest
impl TryFrom<OpenAiChatCompletionsRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiChatCompletionsRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiChatCompletionsRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateImageEditRequest> for OpenAiCreateResponseRequest
impl TryFrom<OpenAiCreateImageEditRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateImageEditRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateImageEditRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateImageRequest> for OpenAiCreateResponseRequest
impl TryFrom<OpenAiCreateImageRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateImageRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateImageRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateResponseRequest> for ClaudeCreateMessageRequest
impl TryFrom<OpenAiCreateResponseRequest> for ClaudeCreateMessageRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateResponseRequest> for GeminiGenerateContentRequest
impl TryFrom<OpenAiCreateResponseRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateResponseRequest> for OpenAiChatCompletionsRequest
impl TryFrom<OpenAiCreateResponseRequest> for OpenAiChatCompletionsRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateResponseRequest> for OpenAiCreateResponseWebSocketConnectRequest
impl TryFrom<OpenAiCreateResponseRequest> for OpenAiCreateResponseWebSocketConnectRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateResponseWebSocketConnectRequest> for OpenAiCreateResponseRequest
impl TryFrom<OpenAiCreateResponseWebSocketConnectRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: OpenAiCreateResponseWebSocketConnectRequest,
) -> Result<Self, TransformError>
fn try_from( value: OpenAiCreateResponseWebSocketConnectRequest, ) -> Result<Self, TransformError>
Performs the conversion.
impl StructuralPartialEq for OpenAiCreateResponseRequest
Auto Trait Implementations§
impl Freeze for OpenAiCreateResponseRequest
impl RefUnwindSafe for OpenAiCreateResponseRequest
impl Send for OpenAiCreateResponseRequest
impl Sync for OpenAiCreateResponseRequest
impl Unpin for OpenAiCreateResponseRequest
impl UnsafeUnpin for OpenAiCreateResponseRequest
impl UnwindSafe for OpenAiCreateResponseRequest
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