pub struct FederatedGraphV1 {
Show 13 fields pub subgraphs: Vec<Subgraph>, pub root_operation_types: RootOperationTypes, pub objects: Vec<Object>, pub object_fields: Vec<ObjectField>, pub interfaces: Vec<Interface>, pub interface_fields: Vec<InterfaceField>, pub fields: Vec<Field>, pub enums: Vec<Enum>, pub unions: Vec<Union>, pub scalars: Vec<Scalar>, pub input_objects: Vec<InputObject>, pub strings: Vec<String>, pub field_types: Vec<FieldType>,
}
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>§object_fields: Vec<ObjectField>§interfaces: Vec<Interface>§interface_fields: Vec<InterfaceField>§fields: Vec<Field>§enums: Vec<Enum>§unions: Vec<Union>§scalars: Vec<Scalar>§input_objects: Vec<InputObject>§strings: Vec<String>

All the strings in the supergraph, deduplicated.

§field_types: Vec<FieldType>

All the field types in the supergraph, deduplicated.

Trait Implementations§

source§

impl Clone for FederatedGraphV1

source§

fn clone(&self) -> FederatedGraphV1

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 FederatedGraphV1

source§

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

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

impl<'de> Deserialize<'de> for FederatedGraphV1

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 Index<EnumId> for FederatedGraphV1

§

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 FederatedGraphV1

§

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<FieldTypeId> for FederatedGraphV1

§

type Output = FieldType

The returned type after indexing.
source§

fn index(&self, index: FieldTypeId) -> &FieldType

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

impl Index<InputObjectId> for FederatedGraphV1

§

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<InterfaceId> for FederatedGraphV1

§

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 FederatedGraphV1

§

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<ScalarId> for FederatedGraphV1

§

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 FederatedGraphV1

§

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 FederatedGraphV1

§

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 FederatedGraphV1

§

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 FederatedGraphV1

source§

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

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

impl IndexMut<FieldId> for FederatedGraphV1

source§

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

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

impl IndexMut<FieldTypeId> for FederatedGraphV1

source§

fn index_mut(&mut self, index: FieldTypeId) -> &mut FieldType

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

impl IndexMut<InputObjectId> for FederatedGraphV1

source§

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

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

impl IndexMut<InterfaceId> for FederatedGraphV1

source§

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

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

impl IndexMut<ObjectId> for FederatedGraphV1

source§

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

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

impl IndexMut<ScalarId> for FederatedGraphV1

source§

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

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

impl IndexMut<StringId> for FederatedGraphV1

source§

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

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

impl IndexMut<SubgraphId> for FederatedGraphV1

source§

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

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

impl IndexMut<UnionId> for FederatedGraphV1

source§

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

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

impl Serialize for FederatedGraphV1

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