Struct graphql_federated_graph::FederatedGraphV3

source ·
pub struct FederatedGraphV3 {
Show 13 fields pub subgraphs: Vec<Subgraph>, pub root_operation_types: RootOperationTypes, pub objects: Vec<Object>, pub interfaces: Vec<Interface>, pub fields: Vec<Field>, pub enums: Vec<Enum>, pub unions: Vec<Union>, pub scalars: Vec<Scalar>, pub input_objects: Vec<InputObject>, pub enum_values: Vec<EnumValue>, pub input_value_definitions: Vec<InputValueDefinition>, pub strings: Vec<String>, pub directives: Vec<Directive>,
}
Expand description

A composed federated graph.

§API contract

Guarantees:

  • All the identifiers are correct.

Does not guarantee:

  • The ordering of items inside each Vec.

Fields§

§subgraphs: Vec<Subgraph>§root_operation_types: RootOperationTypes§objects: Vec<Object>§interfaces: Vec<Interface>§fields: Vec<Field>§enums: Vec<Enum>§unions: Vec<Union>§scalars: Vec<Scalar>§input_objects: Vec<InputObject>§enum_values: Vec<EnumValue>§input_value_definitions: Vec<InputValueDefinition>

All input value definitions in the federated graph. Concretely, these are arguments of output fields, and input object fields.

§strings: Vec<String>

All the strings in the federated graph, deduplicated.

§directives: Vec<Directive>

All composed directive instances (not definitions) in a federated graph.

Trait Implementations§

source§

impl Clone for FederatedGraphV3

source§

fn clone(&self) -> FederatedGraphV3

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FederatedGraphV3

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FederatedGraphV3

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for FederatedGraphV3

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<FederatedGraphV2> for FederatedGraphV3

source§

fn from(value: FederatedGraphV2) -> Self

Converts to this type from the input type.
source§

impl Index<(DirectiveId, usize)> for FederatedGraphV3

§

type Output = [Directive]

The returned type after indexing.
source§

fn index(&self, index: Directives) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<(EnumValueId, usize)> for FederatedGraphV3

§

type Output = [EnumValue]

The returned type after indexing.
source§

fn index(&self, index: EnumValues) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<(InputValueDefinitionId, usize)> for FederatedGraphV3

§

type Output = [InputValueDefinition]

The returned type after indexing.
source§

fn index(&self, index: InputValueDefinitions) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<EnumId> for FederatedGraphV3

§

type Output = Enum

The returned type after indexing.
source§

fn index(&self, index: EnumId) -> &Enum

Performs the indexing (container[index]) operation. Read more
source§

impl Index<FieldId> for FederatedGraphV3

§

type Output = Field

The returned type after indexing.
source§

fn index(&self, index: FieldId) -> &Field

Performs the indexing (container[index]) operation. Read more
source§

impl Index<InputObjectId> for FederatedGraphV3

§

type Output = InputObject

The returned type after indexing.
source§

fn index(&self, index: InputObjectId) -> &InputObject

Performs the indexing (container[index]) operation. Read more
source§

impl Index<InputValueDefinitionId> for FederatedGraphV3

§

type Output = InputValueDefinition

The returned type after indexing.
source§

fn index(&self, index: InputValueDefinitionId) -> &InputValueDefinition

Performs the indexing (container[index]) operation. Read more
source§

impl Index<InterfaceId> for FederatedGraphV3

§

type Output = Interface

The returned type after indexing.
source§

fn index(&self, index: InterfaceId) -> &Interface

Performs the indexing (container[index]) operation. Read more
source§

impl Index<ObjectId> for FederatedGraphV3

§

type Output = Object

The returned type after indexing.
source§

fn index(&self, index: ObjectId) -> &Object

Performs the indexing (container[index]) operation. Read more
source§

impl Index<Range<FieldId>> for FederatedGraphV3

§

type Output = [Field]

The returned type after indexing.
source§

fn index(&self, index: Fields) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<ScalarId> for FederatedGraphV3

§

type Output = Scalar

The returned type after indexing.
source§

fn index(&self, index: ScalarId) -> &Scalar

Performs the indexing (container[index]) operation. Read more
source§

impl Index<StringId> for FederatedGraphV3

§

type Output = String

The returned type after indexing.
source§

fn index(&self, index: StringId) -> &String

Performs the indexing (container[index]) operation. Read more
source§

impl Index<SubgraphId> for FederatedGraphV3

§

type Output = Subgraph

The returned type after indexing.
source§

fn index(&self, index: SubgraphId) -> &Subgraph

Performs the indexing (container[index]) operation. Read more
source§

impl Index<UnionId> for FederatedGraphV3

§

type Output = Union

The returned type after indexing.
source§

fn index(&self, index: UnionId) -> &Union

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<EnumId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: EnumId) -> &mut Enum

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<FieldId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: FieldId) -> &mut Field

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<InputObjectId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: InputObjectId) -> &mut InputObject

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<InputValueDefinitionId> for FederatedGraphV3

source§

fn index_mut( &mut self, index: InputValueDefinitionId, ) -> &mut InputValueDefinition

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<InterfaceId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: InterfaceId) -> &mut Interface

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<ObjectId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: ObjectId) -> &mut Object

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<ScalarId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: ScalarId) -> &mut Scalar

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<StringId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: StringId) -> &mut String

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<SubgraphId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: SubgraphId) -> &mut Subgraph

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<UnionId> for FederatedGraphV3

source§

fn index_mut(&mut self, index: UnionId) -> &mut Union

Performs the mutable indexing (container[index]) operation. Read more
source§

impl Serialize for FederatedGraphV3

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,