pub enum HttpProvider {
Codex,
Openai,
Anthropic,
Gemini,
}Expand description
A built-in direct HTTP provider (API key or Codex OAuth): never an ACP CLI or Claude Code.
Variants§
Implementations§
Source§impl HttpProvider
impl HttpProvider
Trait Implementations§
Source§impl Clone for HttpProvider
impl Clone for HttpProvider
Source§fn clone(&self) -> HttpProvider
fn clone(&self) -> HttpProvider
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 HttpProvider
Source§impl Debug for HttpProvider
impl Debug for HttpProvider
Source§impl<'de> Deserialize<'de> for HttpProvider
impl<'de> Deserialize<'de> for HttpProvider
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpProvider, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpProvider, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HttpProvider
impl Display for HttpProvider
impl Eq for HttpProvider
Source§impl From<HttpProvider> for Provider
impl From<HttpProvider> for Provider
Source§fn from(provider: HttpProvider) -> Provider
fn from(provider: HttpProvider) -> Provider
Converts to this type from the input type.
Source§impl From<HttpProvider> for Backend
impl From<HttpProvider> for Backend
Source§fn from(provider: HttpProvider) -> Backend
fn from(provider: HttpProvider) -> Backend
Converts to this type from the input type.
Source§impl Hash for HttpProvider
impl Hash for HttpProvider
Source§impl Ord for HttpProvider
impl Ord for HttpProvider
Source§fn cmp(&self, other: &HttpProvider) -> Ordering
fn cmp(&self, other: &HttpProvider) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HttpProvider
impl PartialEq for HttpProvider
Source§impl PartialOrd for HttpProvider
impl PartialOrd for HttpProvider
Source§impl Serialize for HttpProvider
impl Serialize for HttpProvider
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HttpProvider
Source§impl TryFrom<Provider> for HttpProvider
impl TryFrom<Provider> for HttpProvider
Source§impl ValueEnum for HttpProvider
impl ValueEnum for HttpProvider
Source§fn value_variants<'a>() -> &'a [HttpProvider]
fn value_variants<'a>() -> &'a [HttpProvider]
All possible argument values, in display order.
Source§fn to_possible_value<'a>(&self) -> Option<PossibleValue>
fn to_possible_value<'a>(&self) -> Option<PossibleValue>
The canonical argument value. Read more
Auto Trait Implementations§
impl Forget for HttpProvider
impl Freeze for HttpProvider
impl Move for HttpProvider
impl RefUnwindSafe for HttpProvider
impl Send for HttpProvider
impl Sync for HttpProvider
impl Unpin for HttpProvider
impl UnsafeUnpin for HttpProvider
impl UnwindSafe for HttpProvider
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.