pub enum ModelUpdate {
Definitions(Vec<ModelDefinition>),
Modified(Option<Vec<Model>>),
Availability(Availability),
}Expand description
A provider’s new models from a refresh.
Variants§
Definitions(Vec<ModelDefinition>)
The list its refreshModels returned.
Modified(Option<Vec<Model>>)
Its chat models as its legacy oauth.modifyModels made them for the
stored OAuth credential, or None without one.
Availability(Availability)
What its API key check, filterModels and filterAllModels make
available for the stored credential.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelUpdate
impl RefUnwindSafe for ModelUpdate
impl Send for ModelUpdate
impl Sync for ModelUpdate
impl Unpin for ModelUpdate
impl UnsafeUnpin for ModelUpdate
impl UnwindSafe for ModelUpdate
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