pub struct OpenAiCompatibleAdapter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ProviderAdapter for OpenAiCompatibleAdapter
impl ProviderAdapter for OpenAiCompatibleAdapter
fn name(&self) -> &'static str
fn capabilities(&self) -> Capabilities
fn encode_request( &self, surface: Surface, request: ProviderRequest, ) -> Result<Value, ProviderError>
fn decode_response( &self, surface: Surface, response: Value, ) -> Result<ProviderResponse, ProviderError>
fn stream_decoder( &self, surface: Surface, ) -> Result<Box<dyn ProviderStreamDecoder>, ProviderError>
Auto Trait Implementations§
impl Freeze for OpenAiCompatibleAdapter
impl RefUnwindSafe for OpenAiCompatibleAdapter
impl Send for OpenAiCompatibleAdapter
impl Sync for OpenAiCompatibleAdapter
impl Unpin for OpenAiCompatibleAdapter
impl UnsafeUnpin for OpenAiCompatibleAdapter
impl UnwindSafe for OpenAiCompatibleAdapter
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