pub struct GraphQl { /* private fields */ }Expand description
GraphQL plugin. Prefer GraphQl::client / GraphQl::fake; server mount is optional.
Implementations§
Source§impl GraphQl
impl GraphQl
Sourcepub fn client(endpoint: impl Into<String>) -> Self
pub fn client(endpoint: impl Into<String>) -> Self
Outbound client against a remote GraphQL HTTP endpoint.
Sourcepub fn fake(fake: FakeGraphql) -> Self
pub fn fake(fake: FakeGraphql) -> Self
Outbound client with in-memory stubs (tests).
pub fn path(self, path: impl Into<String>) -> Self
pub fn graphiql(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Plugin for GraphQl
impl Plugin for GraphQl
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable plugin identifier used for dependency checks and
crate::App::has_plugin. Read moreSource§fn meta(&self) -> PluginMeta
fn meta(&self) -> PluginMeta
Display name, description, and declared
PluginMeta::sdk version.Auto Trait Implementations§
impl Freeze for GraphQl
impl RefUnwindSafe for GraphQl
impl Send for GraphQl
impl Sync for GraphQl
impl Unpin for GraphQl
impl UnsafeUnpin for GraphQl
impl UnwindSafe for GraphQl
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