Trait juniper::ScalarRefValue
source · pub trait ScalarRefValue<'a>: Debug + Into<Option<&'a bool>> + Into<Option<&'a i32>> + Into<Option<&'a String>> + Into<Option<&'a f64>> { }
Expand description
A marker trait extending the ScalarValue
trait
This trait should not be relied on directly by most apps. However, you may
need a where clause in the form of for<'b> &'b S: ScalarRefValue<'b>
to
abstract over different scalar value types.
This is automatically implemented for a type as soon as the type implements
ScalarValue
and the additional conversations.