Skip to main content

ComposedModel

Struct ComposedModel 

Source
pub struct ComposedModel {
    pub subject: Ident,
    pub krate: Path,
    pub sdl: RustSafeName,
    pub shorthand: bool,
    pub fields: Vec<ComposedField>,
}
Expand description

A hand-written FILTER STRUCT, as the composed mode reads it.

Fields§

§subject: Ident

The struct the face is OF — and, being the filter itself, the type every emitted impl names.

§krate: Path

The ingraph root the expansion spells its shelf through.

§sdl: RustSafeName

The input object’s name in the schema — the subject’s own, or whatever filter(rename = "…") moved it to.

§shorthand: bool

Whether rule ① reaches this face — composed(shorthand = …), and true when the declaration said nothing.

§fields: Vec<ComposedField>

The fields, IN DECLARATION ORDER, which is the order the SDL prints them in: async-graphql renders an input object’s fields in the order the registry received them.

Implementations§

Source§

impl ComposedModel

Source

pub fn emit(&self) -> TokenStream

The whole composed mode, emitted.

The emptiness answer is OUTSIDE the binding gate and the three wire faces are inside it, which is the split the slot seam is built along: is anything set is the same question on every backend and a build with no binding still has lowerings that ask it.

Auto Trait Implementations§

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> 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, 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.