pub struct PublicEndpoint {Show 16 fields
pub name: String,
pub model_id: String,
pub model_name: String,
pub context_length: f64,
pub pricing: PublicEndpointPricing,
pub provider_name: String,
pub tag: Option<String>,
pub quantization: Option<String>,
pub max_completion_tokens: Option<f64>,
pub max_prompt_tokens: Option<f64>,
pub supported_parameters: Vec<String>,
pub status: f64,
pub uptime_last_30m: Option<f64>,
pub supports_implicit_caching: Option<bool>,
pub latency_last_30m: Option<PercentileStats>,
pub throughput_last_30m: Option<PercentileStats>,
}Expand description
A single endpoint from the ZDR endpoints listing.
Fields§
§name: StringEndpoint display name.
model_id: StringModel id this endpoint serves.
model_name: StringModel display name.
context_length: f64Context window length, in tokens.
pricing: PublicEndpointPricingPricing information.
provider_name: StringProvider serving this endpoint.
tag: Option<String>Optional provider-specific tag (e.g. region).
quantization: Option<String>Weight quantization label.
max_completion_tokens: Option<f64>Maximum completion tokens supported, if advertised.
max_prompt_tokens: Option<f64>Maximum prompt tokens supported, if advertised.
supported_parameters: Vec<String>Provider-advertised supported parameter names.
status: f64Operational status (0 = healthy, non-zero = degraded).
uptime_last_30m: Option<f64>Rolling 30-minute uptime ratio.
supports_implicit_caching: Option<bool>Whether the endpoint reports implicit cache support.
latency_last_30m: Option<PercentileStats>Recent latency percentiles.
throughput_last_30m: Option<PercentileStats>Recent throughput percentiles.
Trait Implementations§
Source§impl Clone for PublicEndpoint
impl Clone for PublicEndpoint
Source§fn clone(&self) -> PublicEndpoint
fn clone(&self) -> PublicEndpoint
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 PublicEndpoint
impl Debug for PublicEndpoint
Source§impl Default for PublicEndpoint
impl Default for PublicEndpoint
Source§fn default() -> PublicEndpoint
fn default() -> PublicEndpoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicEndpoint
impl<'de> Deserialize<'de> for PublicEndpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PublicEndpoint
impl PartialEq for PublicEndpoint
Source§impl Serialize for PublicEndpoint
impl Serialize for PublicEndpoint
impl StructuralPartialEq for PublicEndpoint
Auto Trait Implementations§
impl Freeze for PublicEndpoint
impl RefUnwindSafe for PublicEndpoint
impl Send for PublicEndpoint
impl Sync for PublicEndpoint
impl Unpin for PublicEndpoint
impl UnsafeUnpin for PublicEndpoint
impl UnwindSafe for PublicEndpoint
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