#[non_exhaustive]pub enum WireFamily {
OpenAi,
Claude,
Gemini,
}Expand description
Wire family for provider-shaped (non-content-generation) operations.
v2 called this Provider; renamed — it names a wire dialect, not a
configured backend.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl WireFamily
impl WireFamily
pub const fn id(self) -> &'static str
pub fn from_id(value: &str) -> Option<Self>
Sourcepub const fn client_markers(self) -> &'static [&'static str]
pub const fn client_markers(self) -> &'static [&'static str]
Request headers that identify a client as speaking this family.
Several families share ingress paths (/v1/files is both OpenAI and
Claude), so classification disambiguates by the dialect the caller
authenticates with. Exhaustive: a new family declares its markers
here rather than growing a private table inside the engine.
Trait Implementations§
Source§impl Clone for WireFamily
impl Clone for WireFamily
Source§fn clone(&self) -> WireFamily
fn clone(&self) -> WireFamily
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 moreimpl Copy for WireFamily
Source§impl Debug for WireFamily
impl Debug for WireFamily
impl Eq for WireFamily
Source§impl Hash for WireFamily
impl Hash for WireFamily
Source§impl PartialEq for WireFamily
impl PartialEq for WireFamily
impl StructuralPartialEq for WireFamily
Auto Trait Implementations§
impl Freeze for WireFamily
impl RefUnwindSafe for WireFamily
impl Send for WireFamily
impl Sync for WireFamily
impl Unpin for WireFamily
impl UnsafeUnpin for WireFamily
impl UnwindSafe for WireFamily
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