#[non_exhaustive]pub struct OpenAiWireModel<TRequest, TResponse> {
pub operation_key: OperationKey,
pub request: Option<TRequest>,
pub response: Option<TResponse>,
pub extra: Extra,
}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.operation_key: OperationKey§request: Option<TRequest>§response: Option<TResponse>§extra: ExtraImplementations§
Source§impl<TRequest, TResponse> OpenAiWireModel<TRequest, TResponse>
impl<TRequest, TResponse> OpenAiWireModel<TRequest, TResponse>
Trait Implementations§
Source§impl<TRequest: Clone, TResponse: Clone> Clone for OpenAiWireModel<TRequest, TResponse>
impl<TRequest: Clone, TResponse: Clone> Clone for OpenAiWireModel<TRequest, TResponse>
Source§fn clone(&self) -> OpenAiWireModel<TRequest, TResponse>
fn clone(&self) -> OpenAiWireModel<TRequest, TResponse>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, TRequest, TResponse> Deserialize<'de> for OpenAiWireModel<TRequest, TResponse>where
TRequest: Deserialize<'de>,
TResponse: Deserialize<'de>,
impl<'de, TRequest, TResponse> Deserialize<'de> for OpenAiWireModel<TRequest, TResponse>where
TRequest: Deserialize<'de>,
TResponse: Deserialize<'de>,
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<TRequest: PartialEq, TResponse: PartialEq> PartialEq for OpenAiWireModel<TRequest, TResponse>
impl<TRequest: PartialEq, TResponse: PartialEq> PartialEq for OpenAiWireModel<TRequest, TResponse>
Source§impl<TRequest, TResponse> Serialize for OpenAiWireModel<TRequest, TResponse>
impl<TRequest, TResponse> Serialize for OpenAiWireModel<TRequest, TResponse>
impl<TRequest: PartialEq, TResponse: PartialEq> StructuralPartialEq for OpenAiWireModel<TRequest, TResponse>
Auto Trait Implementations§
impl<TRequest, TResponse> Freeze for OpenAiWireModel<TRequest, TResponse>
impl<TRequest, TResponse> RefUnwindSafe for OpenAiWireModel<TRequest, TResponse>where
TRequest: RefUnwindSafe,
TResponse: RefUnwindSafe,
impl<TRequest, TResponse> Send for OpenAiWireModel<TRequest, TResponse>
impl<TRequest, TResponse> Sync for OpenAiWireModel<TRequest, TResponse>
impl<TRequest, TResponse> Unpin for OpenAiWireModel<TRequest, TResponse>
impl<TRequest, TResponse> UnsafeUnpin for OpenAiWireModel<TRequest, TResponse>where
TRequest: UnsafeUnpin,
TResponse: UnsafeUnpin,
impl<TRequest, TResponse> UnwindSafe for OpenAiWireModel<TRequest, TResponse>where
TRequest: UnwindSafe,
TResponse: UnwindSafe,
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