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
impl Clone for FederatedGraphV3
source§fn clone(&self) -> FederatedGraphV3
fn clone(&self) -> FederatedGraphV3
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 FederatedGraphV3
impl Debug for FederatedGraphV3
source§impl Default for FederatedGraphV3
impl Default for FederatedGraphV3
source§impl<'de> Deserialize<'de> for FederatedGraphV3
impl<'de> Deserialize<'de> for FederatedGraphV3
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<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 FederatedGraphV3
impl Index<(DirectiveId, usize)> for FederatedGraphV3
source§impl Index<(EnumValueId, usize)> for FederatedGraphV3
impl Index<(EnumValueId, usize)> for FederatedGraphV3
source§impl Index<(InputValueDefinitionId, usize)> for FederatedGraphV3
impl Index<(InputValueDefinitionId, usize)> for FederatedGraphV3
§type Output = [InputValueDefinition]
type Output = [InputValueDefinition]
The returned type after indexing.
source§impl Index<EnumId> for FederatedGraphV3
impl Index<EnumId> for FederatedGraphV3
source§impl Index<FieldId> for FederatedGraphV3
impl Index<FieldId> for FederatedGraphV3
source§impl Index<InputObjectId> for FederatedGraphV3
impl Index<InputObjectId> for FederatedGraphV3
§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<InputValueDefinitionId> for FederatedGraphV3
impl Index<InputValueDefinitionId> for FederatedGraphV3
§type Output = InputValueDefinition
type Output = InputValueDefinition
The returned type after indexing.
source§fn index(&self, index: InputValueDefinitionId) -> &InputValueDefinition
fn index(&self, index: InputValueDefinitionId) -> &InputValueDefinition
Performs the indexing (
container[index]) operation. Read moresource§impl Index<InterfaceId> for FederatedGraphV3
impl Index<InterfaceId> for FederatedGraphV3
source§impl Index<ObjectId> for FederatedGraphV3
impl Index<ObjectId> for FederatedGraphV3
source§impl Index<ScalarId> for FederatedGraphV3
impl Index<ScalarId> for FederatedGraphV3
source§impl Index<StringId> for FederatedGraphV3
impl Index<StringId> for FederatedGraphV3
source§impl Index<SubgraphId> for FederatedGraphV3
impl Index<SubgraphId> for FederatedGraphV3
source§impl Index<UnionId> for FederatedGraphV3
impl Index<UnionId> for FederatedGraphV3
source§impl IndexMut<EnumId> for FederatedGraphV3
impl IndexMut<EnumId> for FederatedGraphV3
source§impl IndexMut<FieldId> for FederatedGraphV3
impl IndexMut<FieldId> for FederatedGraphV3
source§impl IndexMut<InputObjectId> for FederatedGraphV3
impl IndexMut<InputObjectId> for FederatedGraphV3
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<InputValueDefinitionId> for FederatedGraphV3
impl IndexMut<InputValueDefinitionId> for FederatedGraphV3
source§fn index_mut(
&mut self,
index: InputValueDefinitionId,
) -> &mut InputValueDefinition
fn index_mut( &mut self, index: InputValueDefinitionId, ) -> &mut InputValueDefinition
Performs the mutable indexing (
container[index]) operation. Read moresource§impl IndexMut<InterfaceId> for FederatedGraphV3
impl IndexMut<InterfaceId> for FederatedGraphV3
source§impl IndexMut<ObjectId> for FederatedGraphV3
impl IndexMut<ObjectId> for FederatedGraphV3
source§impl IndexMut<ScalarId> for FederatedGraphV3
impl IndexMut<ScalarId> for FederatedGraphV3
source§impl IndexMut<StringId> for FederatedGraphV3
impl IndexMut<StringId> for FederatedGraphV3
source§impl IndexMut<SubgraphId> for FederatedGraphV3
impl IndexMut<SubgraphId> for FederatedGraphV3
source§impl IndexMut<UnionId> for FederatedGraphV3
impl IndexMut<UnionId> for FederatedGraphV3
Auto Trait Implementations§
impl Freeze for FederatedGraphV3
impl RefUnwindSafe for FederatedGraphV3
impl Send for FederatedGraphV3
impl Sync for FederatedGraphV3
impl Unpin for FederatedGraphV3
impl UnwindSafe for FederatedGraphV3
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