pub struct SessionModelList {
pub list: Vec<Value>,
pub quota_snapshots: Option<HashMap<String, Value>>,
}Expand description
The list of models available to this session.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§list: Vec<Value>Available models, ordered with the most preferred default first. Includes both Copilot (CAPI) models and any registry BYOK models; a BYOK model appears under its provider-qualified selection id (provider/id).
quota_snapshots: Option<HashMap<String, Value>>Per-quota snapshots returned alongside the model list, keyed by quota type.
Trait Implementations§
Source§impl Clone for SessionModelList
impl Clone for SessionModelList
Source§fn clone(&self) -> SessionModelList
fn clone(&self) -> SessionModelList
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 SessionModelList
impl Debug for SessionModelList
Source§impl Default for SessionModelList
impl Default for SessionModelList
Source§fn default() -> SessionModelList
fn default() -> SessionModelList
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionModelList
impl<'de> Deserialize<'de> for SessionModelList
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 SessionModelList
impl RefUnwindSafe for SessionModelList
impl Send for SessionModelList
impl Sync for SessionModelList
impl Unpin for SessionModelList
impl UnsafeUnpin for SessionModelList
impl UnwindSafe for SessionModelList
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