pub struct SkillMetadataProvider { /* private fields */ }Expand description
Deterministic model-visible active skill metadata provider.
Implementations§
Source§impl SkillMetadataProvider
impl SkillMetadataProvider
Sourcepub fn new(skills: Vec<SkillMetadata>) -> Result<Self, ContextError>
pub fn new(skills: Vec<SkillMetadata>) -> Result<Self, ContextError>
Creates a canonical active skill provider.
§Errors
Returns an error for too many or duplicate skill IDs.
Trait Implementations§
Source§impl Clone for SkillMetadataProvider
impl Clone for SkillMetadataProvider
Source§fn clone(&self) -> SkillMetadataProvider
fn clone(&self) -> SkillMetadataProvider
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 ContextProvider for SkillMetadataProvider
impl ContextProvider for SkillMetadataProvider
Source§fn id(&self) -> &ContextProviderId
fn id(&self) -> &ContextProviderId
Returns stable provider identity.
Source§fn provide(&self, _request: ContextRequest) -> ContextProviderFuture<'_>
fn provide(&self, _request: ContextRequest) -> ContextProviderFuture<'_>
Produces bounded modules from one immutable request.
Auto Trait Implementations§
impl Freeze for SkillMetadataProvider
impl RefUnwindSafe for SkillMetadataProvider
impl Send for SkillMetadataProvider
impl Sync for SkillMetadataProvider
impl Unpin for SkillMetadataProvider
impl UnsafeUnpin for SkillMetadataProvider
impl UnwindSafe for SkillMetadataProvider
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