pub struct DetectedDomains {
pub domains: Vec<&'static str>,
pub capabilities: CapabilitySet,
pub domain_capabilities: HashMap<&'static str, CapabilitySet>,
pub detected_at: Instant,
}Expand description
Detected domains and their capabilities
This is the new type-safe replacement for DetectedArchetypes.
Uses CapabilitySet for type-safe capability checks.
Fields§
§domains: Vec<&'static str>Names of detected domains (e.g., “HfModel”, “DuckDb”)
capabilities: CapabilitySetCombined capabilities from all detected domains
domain_capabilities: HashMap<&'static str, CapabilitySet>Per-domain capabilities
detected_at: InstantWhen this detection was performed
Implementations§
Source§impl DetectedDomains
impl DetectedDomains
Sourcepub fn has<C: Capability>(&self) -> bool
pub fn has<C: Capability>(&self) -> bool
Sourcepub fn has_in_domain<C: Capability>(&self, domain: &str) -> bool
pub fn has_in_domain<C: Capability>(&self, domain: &str) -> bool
Check if capability is available in a specific domain
Sourcepub fn domains_for<C: Capability>(&self) -> Vec<&'static str>
pub fn domains_for<C: Capability>(&self) -> Vec<&'static str>
Get domains that provide a specific capability
Sourcepub fn domains_for_str(&self, capability: &str) -> Vec<&'static str>
pub fn domains_for_str(&self, capability: &str) -> Vec<&'static str>
Get domains that provide a capability by string ID
Sourcepub fn domains_display(&self) -> String
pub fn domains_display(&self) -> String
Get domain names as comma-separated string for display
Trait Implementations§
Source§impl Clone for DetectedDomains
impl Clone for DetectedDomains
Source§fn clone(&self) -> DetectedDomains
fn clone(&self) -> DetectedDomains
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 DetectedDomains
impl Debug for DetectedDomains
Auto Trait Implementations§
impl Freeze for DetectedDomains
impl RefUnwindSafe for DetectedDomains
impl Send for DetectedDomains
impl Sync for DetectedDomains
impl Unpin for DetectedDomains
impl UnsafeUnpin for DetectedDomains
impl UnwindSafe for DetectedDomains
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> JaggedSlice<T> for T
impl<T> JaggedSlice<T> for T
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more