pub struct Model {
pub id: String,
pub created: Option<u64>,
pub object: ModelObject,
pub owned_by: String,
pub shutdown_date: Option<String>,
}Expand description
Describes an OpenAI model offering that can be used with the API.
Fields§
§id: StringThe model identifier, which can be referenced in the API endpoints.
created: Option<u64>The Unix timestamp (in seconds) when the model was created.
OpenAI returns this field, but some OpenAI-compatible providers omit
it (e.g. DeepSeek, verified against the live GET /models endpoint).
object: ModelObjectThe object type, which is always model.
owned_by: StringThe organization that owns the model.
shutdown_date: Option<String>The date when the model will shut down, or null if not announced.
Note: OpenAI-compatible providers may omit this field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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 Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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