Struct graphql_federated_graph::Field
source · pub struct Field {
pub name: StringId,
pub field_type_id: FieldTypeId,
pub resolvable_in: Vec<SubgraphId>,
pub provides: Vec<FieldProvides>,
pub requires: Vec<FieldRequires>,
pub overrides: Vec<Override>,
pub arguments: Vec<FieldArgument>,
pub composed_directives: Vec<Directive>,
pub description: Option<StringId>,
}
Fields§
§name: StringId
§field_type_id: FieldTypeId
§resolvable_in: Vec<SubgraphId>
This is populated only of fields of entities. The Vec includes all subgraphs the field can be resolved in. For a regular field of an entity, it will be one subgraph, the subgraph where the entity field is defined. For a shareable field in an entity, this contains the subgraphs where the shareable field is defined on the entity. It may not be all the subgraphs.
On fields of value types and input types, this is empty.
provides: Vec<FieldProvides>
See FieldProvides.
requires: Vec<FieldRequires>
See FieldRequires
overrides: Vec<Override>
See Override.
arguments: Vec<FieldArgument>
§composed_directives: Vec<Directive>
All directives that made it through composition. Notably includes @tag
.
description: Option<StringId>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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
Auto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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