pub struct ListedModel {
pub id: String,
pub display_name: Option<String>,
pub context_window: Option<u64>,
pub max_output: Option<u32>,
pub input_types: Option<Vec<String>>,
pub reasoning: Option<bool>,
}Expand description
One model a provider’s endpoint lists, with only what the endpoint said.
Fields§
§id: String§display_name: Option<String>§context_window: Option<u64>§max_output: Option<u32>§input_types: Option<Vec<String>>§reasoning: Option<bool>Whether the model reasons, when the endpoint says.
Trait Implementations§
Source§impl Clone for ListedModel
impl Clone for ListedModel
Source§impl Debug for ListedModel
impl Debug for ListedModel
Source§impl Default for ListedModel
impl Default for ListedModel
Source§impl<'de> Deserialize<'de> for ListedModel
impl<'de> Deserialize<'de> for ListedModel
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 JsonSchema for ListedModel
impl JsonSchema for ListedModel
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ListedModel
impl PartialEq for ListedModel
Source§impl Serialize for ListedModel
impl Serialize for ListedModel
impl StructuralPartialEq for ListedModel
Auto Trait Implementations§
impl Forget for ListedModel
impl Freeze for ListedModel
impl Move for ListedModel
impl RefUnwindSafe for ListedModel
impl Send for ListedModel
impl Sync for ListedModel
impl Unpin for ListedModel
impl UnsafeUnpin for ListedModel
impl UnwindSafe for ListedModel
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