pub struct SearchParametersIndex { /* private fields */ }Implementations§
Source§impl SearchParametersIndex
impl SearchParametersIndex
Sourcepub fn all_parameters(&self) -> Vec<ResolvedParameter>
pub fn all_parameters(&self) -> Vec<ResolvedParameter>
Every indexed parameter, resolved synchronously.
SearchParameterResolve::all is async only to accommodate resolvers
that hit a database; this index is pure in-memory, so callers that run
outside a runtime (a LazyLock initializer, for instance) can read it
directly.
Sourcepub fn get(
&self,
resource_type: Option<&ResourceType>,
name: &str,
) -> Option<&ResolvedParameter>
pub fn get( &self, resource_type: Option<&ResourceType>, name: &str, ) -> Option<&ResolvedParameter>
The parameter named name on resource_type, or failing that on
Resource or DomainResource, which every type inherits. Resolved
synchronously, like Self::all_parameters.
Trait Implementations§
Source§impl Clone for SearchParametersIndex
impl Clone for SearchParametersIndex
Source§impl Default for SearchParametersIndex
impl Default for SearchParametersIndex
Source§impl SearchParameterResolve for SearchParametersIndex
impl SearchParameterResolve for SearchParametersIndex
fn by_resource_type( &self, _tenant: &TenantId, _project: &ProjectId, resource_type: &ResourceType, ) -> impl Future<Output = Result<Vec<ResolvedParameter>, OperationOutcomeError>>
fn by_name( &self, _tenant: &TenantId, _project: &ProjectId, resource_type: Option<&ResourceType>, name: &str, ) -> impl Future<Output = Result<Option<ResolvedParameter>, OperationOutcomeError>>
fn all( &self, _tenant: &TenantId, _project: &ProjectId, ) -> impl Future<Output = Result<Vec<ResolvedParameter>, OperationOutcomeError>>
Auto Trait Implementations§
impl Freeze for SearchParametersIndex
impl RefUnwindSafe for SearchParametersIndex
impl Send for SearchParametersIndex
impl Sync for SearchParametersIndex
impl Unpin for SearchParametersIndex
impl UnsafeUnpin for SearchParametersIndex
impl UnwindSafe for SearchParametersIndex
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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