pub struct A2aSkillBuilder { /* private fields */ }Expand description
Sub-builder for a single A2A skill. Call and to return to the
parent A2aMockBuilder.
Implementations§
Source§impl A2aSkillBuilder
impl A2aSkillBuilder
Sourcepub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
Set the skill display name (defaults to the skill id).
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set the skill description.
Sourcepub fn with_example(self, example: impl Into<String>) -> Self
pub fn with_example(self, example: impl Into<String>) -> Self
Add an example to the skill.
Sourcepub fn and(self) -> A2aMockBuilder
pub fn and(self) -> A2aMockBuilder
Finish this skill and return to the parent builder.
Auto Trait Implementations§
impl Freeze for A2aSkillBuilder
impl RefUnwindSafe for A2aSkillBuilder
impl Send for A2aSkillBuilder
impl Sync for A2aSkillBuilder
impl Unpin for A2aSkillBuilder
impl UnsafeUnpin for A2aSkillBuilder
impl UnwindSafe for A2aSkillBuilder
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