Movatterモバイル変換


[0]ホーム

URL:


Docs.rs

TraitInputType

Source
pub trait InputType:Send    +Sync    +Sized {    typeRawValueType: ?Sized;    // Required methods    fntype_name() ->Cow<'static,str>;    fncreate_type_info(registry: &mut Registry) ->String;    fnparse(value:Option<Value>) ->InputValueResult<Self>;    fnto_value(&self) ->Value;    fnas_raw_value(&self) ->Option<&Self::RawValueType>;    // Provided method    fnqualified_type_name() ->String { ... }}
Expand description

Represents a GraphQL input type.

Required Associated Types§

Source

typeRawValueType: ?Sized

The raw type used for validator.

Usually it isSelf, but the wrapper type is its internal type.

For example:

i32::RawValueType isi32Option<i32>::RawValueType isi32.

Required Methods§

Source

fntype_name() ->Cow<'static,str>

Type the name.

Source

fncreate_type_info(registry: &mut Registry) ->String

Create type information in the registry and return qualified typename.

Source

fnparse(value:Option<Value>) ->InputValueResult<Self>

Parse fromValue. None represents undefined.

Source

fnto_value(&self) ->Value

Convert to aValue for introspection.

Source

fnas_raw_value(&self) ->Option<&Self::RawValueType>

Returns a reference to the raw value.

Provided Methods§

Source

fnqualified_type_name() ->String

Qualified typename.

Dyn Compatibility§

This trait isnotdyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

implInputType forBson

Source§

implInputType forTz

Source§

implInputType forValue

Source§

implInputType forbool

Source§

implInputType forchar

Source§

implInputType forf32

Source§

implInputType forf64

Source§

implInputType fori8

Source§

implInputType fori16

Source§

implInputType fori32

Source§

implInputType fori64

Source§

implInputType forisize

Source§

implInputType foru8

Source§

implInputType foru16

Source§

implInputType foru32

Source§

implInputType foru64

Source§

implInputType forusize

Source§

implInputType forBox<str>

Source§

implInputType forString

Source§

implInputType forArc<str>

Source§

implInputType forBigDecimal

Source§

implInputType forDateTime

Source§

implInputType forDocument

Source§

implInputType forObjectId

Source§

implInputType forUuid

Source§

implInputType forBytes

Source§

implInputType forDateTime<FixedOffset>

Source§

implInputType forDateTime<Local>

Source§

implInputType forDateTime<Utc>

Source§

implInputType forNaiveDate

Source§

implInputType forNaiveDateTime

Source§

implInputType forNaiveTime

Source§

implInputType forDecimal

Source§

implInputType forSmolStr

Source§

implInputType forDate

Source§

implInputType forOffsetDateTime

Source§

implInputType forPrimitiveDateTime

Source§

implInputType forUrl

Source§

implInputType forUuid

Source§

implInputType forNonZeroI8

Source§

implInputType forNonZeroI16

Source§

implInputType forNonZeroI32

Source§

implInputType forNonZeroI64

Source§

implInputType forNonZeroIsize

Source§

implInputType forNonZeroU8

Source§

implInputType forNonZeroU16

Source§

implInputType forNonZeroU32

Source§

implInputType forNonZeroU64

Source§

implInputType forNonZeroUsize

Source§

implInputType forDuration

Source§

implInputType forSecretString

Source§

impl<K, V>InputType forBTreeMap<K, V>

Source§

impl<K, V>InputType forHashMap<K, V>

Source§

impl<K, V, S>InputType forHashMap<K, V, S>

Source§

impl<T:InputType +Ord>InputType forBTreeSet<T>

Source§

impl<T:InputType +Hash +Eq>InputType forHashSet<T>

Source§

impl<T:InputType +Hash +Eq>InputType forHashSet<T>

Source§

impl<T:InputType +Zeroize>InputType forSecretBox<T>

Source§

impl<T:InputType>InputType forOption<T>

Source§

impl<T:InputType>InputType forBox<[T]>

Source§

impl<T:InputType>InputType forBox<T>

Source§

impl<T:InputType>InputType forLinkedList<T>

Source§

impl<T:InputType>InputType forVecDeque<T>

Source§

impl<T:InputType>InputType forArc<[T]>

Source§

impl<T:InputType>InputType forArc<T>

Source§

impl<T:InputType>InputType forVec<T>

Source§

impl<T:InputType, const N:usize>InputType for[T; N]

Implementors§

Source§

implInputType forAny

Source§

implInputType forID

Source§

implInputType forUpload

Source§

impl<T:Num +Display +Send +Sync>InputType forStringNumber<T>

Source§

impl<T:DeserializeOwned +Serialize +Send +Sync>InputType forJson<T>

Source§

impl<T:InputType>InputType forMaybeUndefined<T>


[8]ページ先頭

©2009-2025 Movatter.jp