Trait cynic::coercions::CoercesTo

source ·
pub trait CoercesTo<T> { }
Expand description

Determines whether a type can be coerced into a given schema type.

Users should not usually need to implement this, it’s handled automatically by the various derives.

Implementations on Foreign Types§

source§

impl CoercesTo<Option<Option<bool>>> for bool

source§

impl CoercesTo<Option<Option<f64>>> for f64

source§

impl CoercesTo<Option<Option<i32>>> for i32

source§

impl CoercesTo<Option<Option<Id>>> for str

source§

impl CoercesTo<Option<Option<String>>> for str

source§

impl CoercesTo<Option<Option<String>>> for String

source§

impl CoercesTo<Option<bool>> for bool

source§

impl CoercesTo<Option<f64>> for f64

source§

impl CoercesTo<Option<i32>> for i32

source§

impl CoercesTo<Option<Id>> for str

source§

impl CoercesTo<Option<String>> for str

source§

impl CoercesTo<Option<String>> for String

source§

impl CoercesTo<Option<Vec<Option<bool>>>> for bool

source§

impl CoercesTo<Option<Vec<Option<f64>>>> for f64

source§

impl CoercesTo<Option<Vec<Option<i32>>>> for i32

source§

impl CoercesTo<Option<Vec<Option<Id>>>> for str

source§

impl CoercesTo<Option<Vec<Option<String>>>> for str

source§

impl CoercesTo<Option<Vec<Option<String>>>> for String

source§

impl CoercesTo<Option<Vec<bool>>> for bool

source§

impl CoercesTo<Option<Vec<f64>>> for f64

source§

impl CoercesTo<Option<Vec<i32>>> for i32

source§

impl CoercesTo<Option<Vec<Id>>> for str

source§

impl CoercesTo<Option<Vec<String>>> for str

source§

impl CoercesTo<Option<Vec<String>>> for String

source§

impl CoercesTo<bool> for bool

source§

impl CoercesTo<f64> for f64

source§

impl CoercesTo<i32> for i32

source§

impl CoercesTo<Id> for str

source§

impl CoercesTo<String> for str

source§

impl CoercesTo<String> for String

source§

impl CoercesTo<Vec<bool>> for bool

source§

impl CoercesTo<Vec<f64>> for f64

source§

impl CoercesTo<Vec<i32>> for i32

source§

impl CoercesTo<Vec<Id>> for str

source§

impl CoercesTo<Vec<String>> for str

source§

impl CoercesTo<Vec<String>> for String

source§

impl CoercesTo<Vec<Vec<bool>>> for bool

source§

impl CoercesTo<Vec<Vec<f64>>> for f64

source§

impl CoercesTo<Vec<Vec<i32>>> for i32

source§

impl CoercesTo<Vec<Vec<Id>>> for str

source§

impl CoercesTo<Vec<Vec<String>>> for str

source§

impl CoercesTo<Vec<Vec<String>>> for String

source§

impl<T, TypeLock> CoercesTo<Option<TypeLock>> for Option<T>
where T: CoercesTo<TypeLock>,

source§

impl<T, TypeLock> CoercesTo<Vec<TypeLock>> for [T]
where T: CoercesTo<TypeLock>,

source§

impl<T, TypeLock> CoercesTo<Vec<TypeLock>> for Vec<T>
where T: CoercesTo<TypeLock>,

source§

impl<Target, Typelock> CoercesTo<Typelock> for &Target
where Target: CoercesTo<Typelock> + ?Sized,

Implementors§