pub struct SchemaContent<'a> { /* private fields */ }Expand description
GeneratedContent backed by a slice of tool schemas.
Implementations§
Source§impl<'a> SchemaContent<'a>
impl<'a> SchemaContent<'a>
Sourcepub fn new(schemas: &'a [ToolSchema]) -> SchemaContent<'a>
pub fn new(schemas: &'a [ToolSchema]) -> SchemaContent<'a>
Wrap a slice of schemas. Pass &[] when a recipe needs no generated content.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SchemaContent<'a>
impl<'a> RefUnwindSafe for SchemaContent<'a>
impl<'a> Send for SchemaContent<'a>
impl<'a> Sync for SchemaContent<'a>
impl<'a> Unpin for SchemaContent<'a>
impl<'a> UnsafeUnpin for SchemaContent<'a>
impl<'a> UnwindSafe for SchemaContent<'a>
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