pub struct Parameters<P>(pub P);
Expand description
Parameter Extractor
Tuple Fields§
§0: P
Trait Implementations§
Source§impl<P: Clone> Clone for Parameters<P>
impl<P: Clone> Clone for Parameters<P>
Source§fn clone(&self) -> Parameters<P>
fn clone(&self) -> Parameters<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P: Debug> Debug for Parameters<P>
impl<P: Debug> Debug for Parameters<P>
Source§impl<'de, P> Deserialize<'de> for Parameters<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for Parameters<P>where
P: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, S, P> FromToolCallContextPart<'a, S> for Parameters<P>where
P: DeserializeOwned,
impl<'a, S, P> FromToolCallContextPart<'a, S> for Parameters<P>where
P: DeserializeOwned,
fn from_tool_call_context_part( context: ToolCallContext<'a, S>, ) -> Result<(Self, ToolCallContext<'a, S>), Error>
Source§impl<P: JsonSchema> JsonSchema for Parameters<P>
impl<P: JsonSchema> JsonSchema for Parameters<P>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl<P> Freeze for Parameters<P>where
P: Freeze,
impl<P> RefUnwindSafe for Parameters<P>where
P: RefUnwindSafe,
impl<P> Send for Parameters<P>where
P: Send,
impl<P> Sync for Parameters<P>where
P: Sync,
impl<P> Unpin for Parameters<P>where
P: Unpin,
impl<P> UnwindSafe for Parameters<P>where
P: UnwindSafe,
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