pub struct ExtensionDirective {
pub subgraph_id: SubgraphId,
pub extension_id: ExtensionId,
pub name: StringId,
pub arguments: Option<Vec<(StringId, Value)>>,
}
Expand description
ⓘ
"""
An instance of a directive imported from an extension. The `name` and `arguments` arguments
are a hoisted version of the original directive. We do this so we can add the `graph` and
`extension` arguments.
"""
directive @extension__directive(
"Which subgraph the directive comes from"
graph: join__Graph!
"Which extension the directive is imported from"
extension: grafbase__Extension!
"The name of the directive. Composition has removed the import prefix if there was one in the original subgraph schema."
name: String!
arguments: DirectiveArguments
) repeatable ON FIELD | SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
Fields§
§subgraph_id: SubgraphId
§extension_id: ExtensionId
§name: StringId
§arguments: Option<Vec<(StringId, Value)>>
Trait Implementations§
Source§impl Clone for ExtensionDirective
impl Clone for ExtensionDirective
Source§fn clone(&self) -> ExtensionDirective
fn clone(&self) -> ExtensionDirective
Returns a duplicate 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 ExtensionDirective
impl Debug for ExtensionDirective
Source§impl PartialEq for ExtensionDirective
impl PartialEq for ExtensionDirective
Source§impl PartialOrd for ExtensionDirective
impl PartialOrd for ExtensionDirective
impl StructuralPartialEq for ExtensionDirective
Auto Trait Implementations§
impl Freeze for ExtensionDirective
impl RefUnwindSafe for ExtensionDirective
impl Send for ExtensionDirective
impl Sync for ExtensionDirective
impl Unpin for ExtensionDirective
impl UnwindSafe for ExtensionDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more