pub struct CodecProfile {
pub codec: Symbol,
pub provider: Symbol,
pub request_wire: RequestWire,
pub stream_wire: StreamWire,
}Expand description
Data profile for a provider codec.
Fields§
§codec: SymbolRuntime codec symbol such as codec:openai.
provider: SymbolOpen provider id such as openai or ollama.
request_wire: RequestWireRequest wire shape accepted by the provider.
stream_wire: StreamWireStream frame shape emitted by the provider.
Implementations§
Source§impl CodecProfile
impl CodecProfile
Sourcepub fn new(
codec: Symbol,
provider: Symbol,
request_wire: RequestWire,
stream_wire: StreamWire,
) -> Self
pub fn new( codec: Symbol, provider: Symbol, request_wire: RequestWire, stream_wire: StreamWire, ) -> Self
Builds a provider profile from its open data fields.
Trait Implementations§
Source§impl Clone for CodecProfile
impl Clone for CodecProfile
Source§fn clone(&self) -> CodecProfile
fn clone(&self) -> CodecProfile
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 Debug for CodecProfile
impl Debug for CodecProfile
impl Eq for CodecProfile
Source§impl PartialEq for CodecProfile
impl PartialEq for CodecProfile
impl StructuralPartialEq for CodecProfile
Auto Trait Implementations§
impl Freeze for CodecProfile
impl RefUnwindSafe for CodecProfile
impl Send for CodecProfile
impl Sync for CodecProfile
impl Unpin for CodecProfile
impl UnsafeUnpin for CodecProfile
impl UnwindSafe for CodecProfile
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