Enum ZerorouterEndpoint
pub enum ZerorouterEndpoint {
Default,
}Expand description
ZeroRouter endpoint. The single variant points at the public hosted
deployment, https://zerorouter.ai (currently in beta) — the endpoint a
user who names this provider without further configuration expects, and
the one that works out of the box: its /v1/models listing is public, so
discovery succeeds before any key is configured. ZeroRouter is also
self-hostable (AGPL); operators running their own router — locally
(ZEROROUTER_BIND=0.0.0.0:8080, so http://localhost:8080/v1) or
anywhere else — set base.uri to reach it. A localhost default was
considered and rejected: it made the zero-config path a connection
refusal, or worse, a silent partial catalog from a stray dev instance.
ZEROROUTER_DEFAULT_URL is the canonical default consumed by both
schema and provider construction.
Variants§
Default
Trait Implementations§
Source§impl Clone for ZerorouterEndpoint
impl Clone for ZerorouterEndpoint
Source§fn clone(&self) -> ZerorouterEndpoint
fn clone(&self) -> ZerorouterEndpoint
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ZerorouterEndpoint
Source§impl Debug for ZerorouterEndpoint
impl Debug for ZerorouterEndpoint
Source§impl Default for ZerorouterEndpoint
impl Default for ZerorouterEndpoint
Source§fn default() -> ZerorouterEndpoint
fn default() -> ZerorouterEndpoint
Source§impl<'de> Deserialize<'de> for ZerorouterEndpoint
impl<'de> Deserialize<'de> for ZerorouterEndpoint
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZerorouterEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZerorouterEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ZerorouterEndpoint
Source§impl HasPropKind for ZerorouterEndpoint
impl HasPropKind for ZerorouterEndpoint
const PROP_KIND: PropKind = crate::config::PropKind::Enum
const ALIAS_SOURCE: Option<AliasSource> = None
Source§fn display_secret_terminals() -> Vec<&'static str>
fn display_secret_terminals() -> Vec<&'static str>
secret_field_terminals.Source§impl JsonSchema for ZerorouterEndpoint
impl JsonSchema for ZerorouterEndpoint
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl ModelEndpoint for ZerorouterEndpoint
impl ModelEndpoint for ZerorouterEndpoint
Source§impl PartialEq for ZerorouterEndpoint
impl PartialEq for ZerorouterEndpoint
Source§fn eq(&self, other: &ZerorouterEndpoint) -> bool
fn eq(&self, other: &ZerorouterEndpoint) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ZerorouterEndpoint
impl Serialize for ZerorouterEndpoint
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,
impl StructuralPartialEq for ZerorouterEndpoint
Auto Trait Implementations§
impl Freeze for ZerorouterEndpoint
impl RefUnwindSafe for ZerorouterEndpoint
impl Send for ZerorouterEndpoint
impl Sync for ZerorouterEndpoint
impl Unpin for ZerorouterEndpoint
impl UnsafeUnpin for ZerorouterEndpoint
impl UnwindSafe for ZerorouterEndpoint
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more