pub struct Availability {
pub source: Option<String>,
pub chat: Option<HashSet<String>>,
pub all: Option<HashMap<String, HashSet<String>>>,
}Expand description
What a pi-ai Provider from an extension makes available for the stored
credential, as pi’s Models finds it each time availability refreshes.
Fields§
§source: Option<String>Where its API key check finds a key, or None when it finds none.
chat: Option<HashSet<String>>The ids of the chat models its filterModels keeps. None keeps
every one.
all: Option<HashMap<String, HashSet<String>>>The ids of the models of each type kept across every type, as pi’s
getAllAvailable keeps them. None keeps every one.
Trait Implementations§
Source§impl Clone for Availability
impl Clone for Availability
Source§impl Debug for Availability
impl Debug for Availability
Source§impl Default for Availability
impl Default for Availability
Source§impl<'de> Deserialize<'de> for Availability
impl<'de> Deserialize<'de> for Availability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Availability
impl PartialEq for Availability
impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnsafeUnpin for Availability
impl UnwindSafe for Availability
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