pub struct SkillMetadata { /* private fields */ }Expand description
Bounded declarative skill metadata; it does not execute the skill.
Implementations§
Source§impl SkillMetadata
impl SkillMetadata
Sourcepub fn new(
id: SkillId,
description: impl Into<String>,
) -> Result<Self, SkillError>
pub fn new( id: SkillId, description: impl Into<String>, ) -> Result<Self, SkillError>
Creates one skill metadata entry.
§Errors
Returns an error for empty, oversized, or null-containing description.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns model-visible skill description.
Sourcepub fn invocation(&self) -> SkillInvocation
pub fn invocation(&self) -> SkillInvocation
Returns the sole explicit invocation form.
Trait Implementations§
Source§impl Clone for SkillMetadata
impl Clone for SkillMetadata
Source§fn clone(&self) -> SkillMetadata
fn clone(&self) -> SkillMetadata
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 SkillMetadata
impl Debug for SkillMetadata
impl Eq for SkillMetadata
Source§impl PartialEq for SkillMetadata
impl PartialEq for SkillMetadata
impl StructuralPartialEq for SkillMetadata
Auto Trait Implementations§
impl Freeze for SkillMetadata
impl RefUnwindSafe for SkillMetadata
impl Send for SkillMetadata
impl Sync for SkillMetadata
impl Unpin for SkillMetadata
impl UnsafeUnpin for SkillMetadata
impl UnwindSafe for SkillMetadata
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