pub struct ModelEndpoint {
pub name: String,
pub context_length: f64,
pub pricing: ModelEndpointPricing,
pub provider_name: 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>,
}Expand description
A single provider endpoint for a model.
Fields§
§name: StringEndpoint display name.
context_length: f64Context window in tokens.
pricing: ModelEndpointPricingPricing information.
provider_name: StringProvider serving this endpoint.
quantization: Option<String>Weight quantization label.
max_completion_tokens: Option<f64>Maximum completion tokens supported.
max_prompt_tokens: Option<f64>Maximum prompt tokens supported.
supported_parameters: Vec<String>Provider-advertised supported parameter names.
status: f64Operational status (0 = healthy).
uptime_last_30m: Option<f64>Rolling 30-minute uptime ratio.
Trait Implementations§
Source§impl Clone for ModelEndpoint
impl Clone for ModelEndpoint
Source§fn clone(&self) -> ModelEndpoint
fn clone(&self) -> ModelEndpoint
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 ModelEndpoint
impl Debug for ModelEndpoint
Source§impl Default for ModelEndpoint
impl Default for ModelEndpoint
Source§fn default() -> ModelEndpoint
fn default() -> ModelEndpoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelEndpoint
impl<'de> Deserialize<'de> for ModelEndpoint
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 ModelEndpoint
impl PartialEq for ModelEndpoint
Source§impl Serialize for ModelEndpoint
impl Serialize for ModelEndpoint
impl StructuralPartialEq for ModelEndpoint
Auto Trait Implementations§
impl Freeze for ModelEndpoint
impl RefUnwindSafe for ModelEndpoint
impl Send for ModelEndpoint
impl Sync for ModelEndpoint
impl Unpin for ModelEndpoint
impl UnsafeUnpin for ModelEndpoint
impl UnwindSafe for ModelEndpoint
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