Skip to main content

ValidatedTypes

Struct ValidatedTypes 

Source
pub struct ValidatedTypes { /* private fields */ }
Expand description

A concrete generic call’s description after complete validation.

Implementations§

Source§

impl ValidatedTypes

Source

pub fn catalog(&self) -> &Catalog

The validated catalog, shared by every root in this view.

Source

pub fn binding(&self, name: &str) -> Option<&Type>

The concrete type bound to the type parameter name.

Source

pub fn bindings(&self) -> &[(String, Type)]

The concrete bindings, in the Tool’s type parameter order.

Source

pub fn argument(&self, name: &str) -> Option<&Type>

A parameter’s concrete type, by its key.

Source

pub fn params(&self) -> &[(String, Type)]

The concrete parameters, in declaration order.

Source

pub fn result(&self) -> &Type

The concrete result.

Source

pub fn schema(&self) -> Option<&str>

For a Tool with one type parameter, the canonical text of the JSON Schema of the type the call binds to it (abi.md, Schemas).

Source

pub fn types(&self) -> &[u8] ⓘ

The CallTypes bytes the call carried.

Trait Implementations§

Source§

impl Clone for ValidatedTypes

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ValidatedTypes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for ValidatedTypes

§

impl Forget for ValidatedTypes

§

impl Move for ValidatedTypes

§

impl RefUnwindSafe for ValidatedTypes

§

impl Send for ValidatedTypes
where RawVecInner: Send, Arc<RecordShape>: Send, BoxRaw<Type>: Send, Arc<EnumShape>: Send, Mutex<HashMap<(Type, Settings), Option<String>>>: Send, RawTable<(Box<str>, usize)>: Send, BoxRaw<[usize]>: Send, BoxRaw<[Option<OptionCtor>]>: Send, BoxRaw<[Option<JsonValueCtor>]>: Send, Arc<[u8]>: Send,

§

impl Sync for ValidatedTypes
where RawVecInner: Sync, Arc<RecordShape>: Sync, BoxRaw<Type>: Sync, Arc<EnumShape>: Sync, Mutex<HashMap<(Type, Settings), Option<String>>>: Sync, RawTable<(Box<str>, usize)>: Sync, BoxRaw<[usize]>: Sync, BoxRaw<[Option<OptionCtor>]>: Sync, BoxRaw<[Option<JsonValueCtor>]>: Sync, Arc<[u8]>: Sync,

§

impl Unpin for ValidatedTypes

§

impl UnsafeUnpin for ValidatedTypes

§

impl UnwindSafe for ValidatedTypes

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.