pub struct UsizeDefault(/* private fields */);Expand description
Default wrapper for usize (unconstrained).
Used internally for MCP elicitation of primitive values. Provides JsonSchema for client-side validation.
Implementations§
Trait Implementations§
Source§impl Clone for UsizeDefault
impl Clone for UsizeDefault
Source§fn clone(&self) -> UsizeDefault
fn clone(&self) -> UsizeDefault
Returns a duplicate 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 Debug for UsizeDefault
impl Debug for UsizeDefault
Source§impl<'de> Deserialize<'de> for UsizeDefault
impl<'de> Deserialize<'de> for UsizeDefault
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 Elicitation for UsizeDefault
impl Elicitation for UsizeDefault
Source§async fn elicit(client: &ElicitClient<'_>) -> ElicitResult<Self>
async fn elicit(client: &ElicitClient<'_>) -> ElicitResult<Self>
Elicit a value of this type from the user via style-aware client. Read more
Source§fn with_style(style: Self::Style) -> ElicitBuilder<Self>
fn with_style(style: Self::Style) -> ElicitBuilder<Self>
Create a builder for one-off style override. Read more
Source§impl Hash for UsizeDefault
impl Hash for UsizeDefault
Source§impl JsonSchema for UsizeDefault
impl JsonSchema for UsizeDefault
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. 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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for UsizeDefault
impl Ord for UsizeDefault
Source§fn cmp(&self, other: &UsizeDefault) -> Ordering
fn cmp(&self, other: &UsizeDefault) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UsizeDefault
impl PartialEq for UsizeDefault
Source§impl PartialOrd for UsizeDefault
impl PartialOrd for UsizeDefault
Source§impl Prompt for UsizeDefault
impl Prompt for UsizeDefault
Source§impl Serialize for UsizeDefault
impl Serialize for UsizeDefault
impl Copy for UsizeDefault
impl ElicitationSafe for UsizeDefault
impl Eq for UsizeDefault
impl StructuralPartialEq for UsizeDefault
Auto Trait Implementations§
impl Freeze for UsizeDefault
impl RefUnwindSafe for UsizeDefault
impl Send for UsizeDefault
impl Sync for UsizeDefault
impl Unpin for UsizeDefault
impl UnwindSafe for UsizeDefault
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> WithContract for T
impl<T> WithContract for T
Source§fn with_contract<C>(contract: C) -> ContractedElicitation<Self, C>
fn with_contract<C>(contract: C) -> ContractedElicitation<Self, C>
Attach a contract to this type’s elicitation. Read more