pub struct DiscoveryResult {
pub discovery: bool,
pub models: Vec<String>,
}Expand description
The discovery outcome for the served surface (RFC 0018 §5.4):
discovery: at least one endpoint answered/v1/models.models: the union of discovered ids across endpoints + the configuredmodel, de-duplicated, order-stable ([]if none discovered AND no model).
Fields§
§discovery: bool§models: Vec<String>Trait Implementations§
Source§impl Clone for DiscoveryResult
impl Clone for DiscoveryResult
Source§fn clone(&self) -> DiscoveryResult
fn clone(&self) -> DiscoveryResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscoveryResult
impl Debug for DiscoveryResult
Source§impl Default for DiscoveryResult
impl Default for DiscoveryResult
Source§fn default() -> DiscoveryResult
fn default() -> DiscoveryResult
Returns the “default value” for a type. Read more
impl Eq for DiscoveryResult
Source§impl PartialEq for DiscoveryResult
impl PartialEq for DiscoveryResult
impl StructuralPartialEq for DiscoveryResult
Auto Trait Implementations§
impl Freeze for DiscoveryResult
impl RefUnwindSafe for DiscoveryResult
impl Send for DiscoveryResult
impl Sync for DiscoveryResult
impl Unpin for DiscoveryResult
impl UnsafeUnpin for DiscoveryResult
impl UnwindSafe for DiscoveryResult
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