pub struct Directive(/* private fields */);Expand description
The directive and its arguments which define the extension in the GraphQL SDK.
Implementations§
Source§impl Directive
impl Directive
Sourcepub fn subgraph_name(&self) -> &str
pub fn subgraph_name(&self) -> &str
The name of the subgraph this directive is part of.
Sourcepub fn arguments<'de, T>(&'de self) -> Result<T, DecodeError>where
T: Deserialize<'de>,
pub fn arguments<'de, T>(&'de self) -> Result<T, DecodeError>where
T: Deserialize<'de>,
The directive arguments. The output is a Serde structure, that must map to the arguments of the directive.
Error is returned if the directive argument does not match the output structure.
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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