pub struct ModelQuery {
pub models: Vec<(String, String)>,
pub problem: Option<String>,
}Expand description
Result of querying the model list: when problem is set, the list may be incomplete (e.g., not logged in or expired), and the user should be informed.
Fields§
§models: Vec<(String, String)>(display_label, id).
problem: Option<String>User-facing problem description.
Trait Implementations§
Source§impl Clone for ModelQuery
impl Clone for ModelQuery
Source§impl Debug for ModelQuery
impl Debug for ModelQuery
Source§impl Default for ModelQuery
impl Default for ModelQuery
impl Eq for ModelQuery
Source§impl PartialEq for ModelQuery
impl PartialEq for ModelQuery
impl StructuralPartialEq for ModelQuery
Auto Trait Implementations§
impl Forget for ModelQuery
impl Freeze for ModelQuery
impl Move for ModelQuery
impl RefUnwindSafe for ModelQuery
impl Send for ModelQuerywhere
RawVecInner: Send,
impl Sync for ModelQuerywhere
RawVecInner: Sync,
impl Unpin for ModelQuery
impl UnsafeUnpin for ModelQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ModelQuerywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.