Skip to main content

IsOutputType

Trait IsOutputType 

Source
pub trait IsOutputType<S: ScalarValue>: GraphQLType<S> {
    // Provided method
    fn mark() { ... }
}
Expand description

Marker trait for types which can be used as output types.

The GraphQL specification differentiates between input and output types. Each type which can be used as an output type should implement this trait. The specification defines enum, scalar, object, union, and interface as output types.

Provided Methods§

Source

fn mark()

An arbitrary function without meaning.

May contain compile timed check logic which ensures that types are used correctly according to the GraphQL specification.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S> IsOutputType<S> for str
where S: ScalarValue,

Source§

impl<S, T> IsOutputType<S> for Option<T>
where T: IsOutputType<S>, S: ScalarValue,

Source§

impl<S, T> IsOutputType<S> for &T
where T: IsOutputType<S> + ?Sized, S: ScalarValue,

Source§

impl<S, T> IsOutputType<S> for [T]
where T: IsOutputType<S>, S: ScalarValue,

Source§

impl<S, T> IsOutputType<S> for Box<T>
where T: IsOutputType<S> + ?Sized, S: ScalarValue,

Source§

impl<S, T> IsOutputType<S> for Arc<T>
where T: IsOutputType<S> + ?Sized, S: ScalarValue,

Source§

impl<S, T> IsOutputType<S> for Vec<T>
where T: IsOutputType<S>, S: ScalarValue,

Source§

impl<S, T, const N: usize> IsOutputType<S> for [T; N]
where T: IsOutputType<S>, S: ScalarValue,

Source§

impl<Tz, __S> IsOutputType<__S> for DateTime<Tz>

Available on crate feature chrono only.
Source§

impl<__S> IsOutputType<__S> for Tz
where __S: ScalarValue,

Available on crate feature chrono-tz only.
Source§

impl<__S> IsOutputType<__S> for bool
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for f64
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for i32
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for String
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for BigDecimal
where __S: ScalarValue,

Available on crate feature bigdecimal only.
Source§

impl<__S> IsOutputType<__S> for DateTime
where __S: ScalarValue,

Available on crate feature bson only.
Source§

impl<__S> IsOutputType<__S> for ObjectId
where __S: ScalarValue,

Available on crate feature bson only.
Source§

impl<__S> IsOutputType<__S> for NaiveDate
where __S: ScalarValue,

Available on crate feature chrono only.
Source§

impl<__S> IsOutputType<__S> for NaiveDateTime
where __S: ScalarValue,

Available on crate feature chrono only.
Source§

impl<__S> IsOutputType<__S> for NaiveTime
where __S: ScalarValue,

Available on crate feature chrono only.
Source§

impl<__S> IsOutputType<__S> for CompactString
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for Date
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for DateTime
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for Time
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for Span
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for Timestamp
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for Offset
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for TimeZone
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for Zoned
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for Decimal
where __S: ScalarValue,

Available on crate feature rust_decimal only.
Source§

impl<__S> IsOutputType<__S> for Date
where __S: ScalarValue,

Available on crate feature time only.
Source§

impl<__S> IsOutputType<__S> for OffsetDateTime
where __S: ScalarValue,

Available on crate feature time only.
Source§

impl<__S> IsOutputType<__S> for PrimitiveDateTime
where __S: ScalarValue,

Available on crate feature time only.
Source§

impl<__S> IsOutputType<__S> for Time
where __S: ScalarValue,

Available on crate feature time only.
Source§

impl<__S> IsOutputType<__S> for UtcOffset
where __S: ScalarValue,

Available on crate feature time only.
Source§

impl<__S> IsOutputType<__S> for Url
where __S: ScalarValue,

Available on crate feature url only.
Source§

impl<__S> IsOutputType<__S> for Uuid
where __S: ScalarValue,

Available on crate feature uuid only.

Implementors§

Source§

impl<S> IsOutputType<S> for Argument<S>

Source§

impl<S> IsOutputType<S> for Field<S>

Source§

impl<S> IsOutputType<S> for SchemaType<S>

Source§

impl<__S> IsOutputType<__S> for TypeKind
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for Episode
where __S: ScalarValue,

Available on crate feature expose-test-schema only.
Source§

impl<__S> IsOutputType<__S> for juniper::integrations::jiff::TimeZone
where __S: ScalarValue,

Available on crate feature jiff only.
Source§

impl<__S> IsOutputType<__S> for EnumValue
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for ArcStr
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for ID
where __S: ScalarValue,

Source§

impl<__S> IsOutputType<__S> for Droid
where __S: ScalarValue,

Available on crate feature expose-test-schema only.
Source§

impl<__S> IsOutputType<__S> for Human
where __S: ScalarValue,

Available on crate feature expose-test-schema only.
Source§

impl<__S> IsOutputType<__S> for Query
where __S: ScalarValue,

Available on crate feature expose-test-schema only.
Source§

impl<__S> IsOutputType<__S> for Subscription
where __S: ScalarValue,

Available on crate feature expose-test-schema only.
Source§

impl<__S> IsOutputType<__S> for CharacterValue
where __S: ScalarValue,

Available on crate feature expose-test-schema only.