pub struct Endpoint {
pub name: String,
pub context_length: f64,
pub pricing: EndpointPricing,
pub provider_name: String,
pub supported_parameters: Vec<String>,
pub quantization: Option<String>,
pub max_completion_tokens: Option<f64>,
pub max_prompt_tokens: Option<f64>,
pub status: Option<Value>,
}
Fields§
§name: String
§context_length: f64
§pricing: EndpointPricing
§provider_name: String
§supported_parameters: Vec<String>
§quantization: Option<String>
§max_completion_tokens: Option<f64>
§max_prompt_tokens: Option<f64>
§status: Option<Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
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
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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