pub struct ProviderItem {
pub key: &'static str,
pub name: &'static str,
pub local: bool,
pub key_set: bool,
}Expand description
A provider item for the dropdown.
Fields§
§key: &'static strInternal key (e.g. “anthropic”, “openai”).
name: &'static strDisplay name (e.g. “Anthropic”, “OpenAI”).
local: boolWhether this is a local provider (no API key needed).
key_set: boolWhether an API key is configured for this provider.
Only meaningful in the /key picker — always false in /provider.
Trait Implementations§
Source§impl Clone for ProviderItem
impl Clone for ProviderItem
Source§fn clone(&self) -> ProviderItem
fn clone(&self) -> ProviderItem
Returns a duplicate of the value. Read more
1.0.0 · 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 ProviderItem
impl Debug for ProviderItem
Source§impl DropdownItem for ProviderItem
impl DropdownItem for ProviderItem
Auto Trait Implementations§
impl Freeze for ProviderItem
impl RefUnwindSafe for ProviderItem
impl Send for ProviderItem
impl Sync for ProviderItem
impl Unpin for ProviderItem
impl UnsafeUnpin for ProviderItem
impl UnwindSafe for ProviderItem
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more