pub struct Preset {
pub id: &'static str,
pub name: &'static str,
pub base_url: &'static str,
pub model: &'static str,
pub local: bool,
pub needs_key: bool,
pub hint: &'static str,
}Expand description
A common setup to fill the connection form from.
Fields§
§id: &'static str§name: &'static str§base_url: &'static str§model: &'static strA model name to start with when the server lists none.
local: boolRuns on your machine (so the engine looks for it at startup).
needs_key: boolNeeds an API key.
hint: &'static strImplementations§
Trait Implementations§
impl Copy for Preset
impl Eq for Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Forget for Preset
impl Freeze for Preset
impl Move for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnsafeUnpin for Presetwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Presetwhere
&'static str: 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