pub struct FederatedGraphV2 {Show 16 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 enum_values: Vec<EnumValue>,
pub input_value_definitions: Vec<InputValueDefinition>,
pub strings: Vec<String>,
pub field_types: Vec<FieldType>,
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>§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>§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.
field_types: Vec<FieldType>All the field types in the federated graph, deduplicated.
directives: Vec<Directive>All composed directive instances (not definitions) in a federated graph.
Trait Implementations§
source§impl Clone for FederatedGraphV2
impl Clone for FederatedGraphV2
source§fn clone(&self) -> FederatedGraphV2
fn clone(&self) -> FederatedGraphV2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FederatedGraphV2
impl Debug for FederatedGraphV2
source§impl<'de> Deserialize<'de> for FederatedGraphV2
impl<'de> Deserialize<'de> for FederatedGraphV2
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<FederatedGraphV1> for FederatedGraphV2
impl From<FederatedGraphV1> for FederatedGraphV2
source§fn from(_: FederatedGraphV1) -> Self
fn from(_: FederatedGraphV1) -> Self
Converts to this type from the input type.
source§impl From<FederatedGraphV2> for FederatedGraphV3
impl From<FederatedGraphV2> for FederatedGraphV3
source§fn from(value: FederatedGraphV2) -> Self
fn from(value: FederatedGraphV2) -> Self
Converts to this type from the input type.
source§impl Index<(DirectiveId, usize)> for FederatedGraphV2
impl Index<(DirectiveId, usize)> for FederatedGraphV2
source§impl Index<(EnumValueId, usize)> for FederatedGraphV2
impl Index<(EnumValueId, usize)> for FederatedGraphV2
source§impl Index<(InputValueDefinitionId, usize)> for FederatedGraphV2
impl Index<(InputValueDefinitionId, usize)> for FederatedGraphV2
source§impl Index<EnumId> for FederatedGraphV2
impl Index<EnumId> for FederatedGraphV2
source§impl Index<FieldId> for FederatedGraphV2
impl Index<FieldId> for FederatedGraphV2
source§impl Index<InputObjectId> for FederatedGraphV2
impl Index<InputObjectId> for FederatedGraphV2
§type Output = InputObject
type Output = InputObject
The returned type after indexing.
source§fn index(&self, index: InputObjectId) -> &InputObject
fn index(&self, index: InputObjectId) -> &InputObject
Performs the indexing (
container[index]) operation. Read moresource§impl Index<InterfaceId> for FederatedGraphV2
impl Index<InterfaceId> for FederatedGraphV2
source§impl Index<ObjectId> for FederatedGraphV2
impl Index<ObjectId> for FederatedGraphV2
source§impl Index<ScalarId> for FederatedGraphV2
impl Index<ScalarId> for FederatedGraphV2
source§impl Index<StringId> for FederatedGraphV2
impl Index<StringId> for FederatedGraphV2
source§impl Index<SubgraphId> for FederatedGraphV2
impl Index<SubgraphId> for FederatedGraphV2
source§impl Index<UnionId> for FederatedGraphV2
impl Index<UnionId> for FederatedGraphV2
source§impl IndexMut<EnumId> for FederatedGraphV2
impl IndexMut<EnumId> for FederatedGraphV2
source§impl IndexMut<FieldId> for FederatedGraphV2
impl IndexMut<FieldId> for FederatedGraphV2
source§impl IndexMut<InputObjectId> for FederatedGraphV2
impl IndexMut<InputObjectId> for FederatedGraphV2
source§fn index_mut(&mut self, index: InputObjectId) -> &mut InputObject
fn index_mut(&mut self, index: InputObjectId) -> &mut InputObject
Performs the mutable indexing (
container[index]) operation. Read moresource§impl IndexMut<InterfaceId> for FederatedGraphV2
impl IndexMut<InterfaceId> for FederatedGraphV2
source§fn index_mut(&mut self, index: InterfaceId) -> &mut Interface
fn index_mut(&mut self, index: InterfaceId) -> &mut Interface
Performs the mutable indexing (
container[index]) operation. Read moresource§impl IndexMut<ObjectId> for FederatedGraphV2
impl IndexMut<ObjectId> for FederatedGraphV2
source§impl IndexMut<ScalarId> for FederatedGraphV2
impl IndexMut<ScalarId> for FederatedGraphV2
source§impl IndexMut<StringId> for FederatedGraphV2
impl IndexMut<StringId> for FederatedGraphV2
source§impl IndexMut<SubgraphId> for FederatedGraphV2
impl IndexMut<SubgraphId> for FederatedGraphV2
source§impl IndexMut<UnionId> for FederatedGraphV2
impl IndexMut<UnionId> for FederatedGraphV2
Auto Trait Implementations§
impl Freeze for FederatedGraphV2
impl RefUnwindSafe for FederatedGraphV2
impl Send for FederatedGraphV2
impl Sync for FederatedGraphV2
impl Unpin for FederatedGraphV2
impl UnwindSafe for FederatedGraphV2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more