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