pub struct ToSqlxArgsFactory;Expand description
Tools for types implementing crate::ToSqlxArgs
Implementations§
Source§impl ToSqlxArgsFactory
impl ToSqlxArgsFactory
Sourcepub fn prime<T>()where
T: ToSqlxArgs + Serialize + DeserializeOwned + JsonSchema + Elicitation + Send + Sync + 'static,
pub fn prime<T>()where
T: ToSqlxArgs + Serialize + DeserializeOwned + JsonSchema + Elicitation + Send + Sync + 'static,
Prime this factory for concrete type T.
Called by DynamicToolRegistry::register_type::<T>().
Monomorphization of vtable closures happens here — T is concrete.
Trait Implementations§
Source§impl AnyToolFactory for ToSqlxArgsFactory
impl AnyToolFactory for ToSqlxArgsFactory
Source§fn trait_name(&self) -> &'static str
fn trait_name(&self) -> &'static str
Fully-qualified name of the third-party trait this factory wraps. Read more
Source§fn factory_description(&self) -> &'static str
fn factory_description(&self) -> &'static str
Human-readable description shown to agents in the factory meta-tool.
Source§fn method_names(&self) -> &'static [&'static str]
fn method_names(&self) -> &'static [&'static str]
Names of the individual tools this factory can produce.
Source§fn instantiate(
&self,
slot: &dyn AnyToolSlot,
) -> Result<Vec<DynamicToolDescriptor>, ErrorData>
fn instantiate( &self, slot: &dyn AnyToolSlot, ) -> Result<Vec<DynamicToolDescriptor>, ErrorData>
Produce
DynamicToolDescriptors for the given type slot. Read moreAuto Trait Implementations§
impl Freeze for ToSqlxArgsFactory
impl RefUnwindSafe for ToSqlxArgsFactory
impl Send for ToSqlxArgsFactory
impl Sync for ToSqlxArgsFactory
impl Unpin for ToSqlxArgsFactory
impl UnsafeUnpin for ToSqlxArgsFactory
impl UnwindSafe for ToSqlxArgsFactory
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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