pub struct TypeValidationContext {
pub field: Option<String>,
pub entity_name: Option<String>,
pub entity_id: Option<String>,
}Expand description
Where a validated value came from, for error messages.
Fields§
§field: Option<String>Field or path being validated.
entity_name: Option<String>Kind of entity (for example tool input).
entity_id: Option<String>Identifier of the entity (for example a tool call id).
Trait Implementations§
Source§impl Clone for TypeValidationContext
impl Clone for TypeValidationContext
Source§fn clone(&self) -> TypeValidationContext
fn clone(&self) -> TypeValidationContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeValidationContext
impl Debug for TypeValidationContext
Source§impl Default for TypeValidationContext
impl Default for TypeValidationContext
Source§fn default() -> TypeValidationContext
fn default() -> TypeValidationContext
Returns the “default value” for a type. Read more
impl Eq for TypeValidationContext
Source§impl PartialEq for TypeValidationContext
impl PartialEq for TypeValidationContext
impl StructuralPartialEq for TypeValidationContext
Auto Trait Implementations§
impl Freeze for TypeValidationContext
impl RefUnwindSafe for TypeValidationContext
impl Send for TypeValidationContext
impl Sync for TypeValidationContext
impl Unpin for TypeValidationContext
impl UnsafeUnpin for TypeValidationContext
impl UnwindSafe for TypeValidationContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.