pub struct Models<'a>(/* private fields */);Expand description
Workspace default model and model choices.
Implementations§
Source§impl Models<'_>
impl Models<'_>
pub fn list(&self) -> Result<ModelCatalog>
Sourcepub fn set_default(&self, model: &str) -> Result<String>
pub fn set_default(&self, model: &str) -> Result<String>
Changes the model used by every bot whose model is ModelRef::DEFAULT; returns the new default.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Models<'a>
impl<'a> !UnwindSafe for Models<'a>
impl<'a> Freeze for Models<'a>
impl<'a> Send for Models<'a>
impl<'a> Sync for Models<'a>
impl<'a> Unpin for Models<'a>
impl<'a> UnsafeUnpin for Models<'a>
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