Update docs
This commit is contained in:
parent
a01e067781
commit
279899559a
|
@ -53,7 +53,7 @@ impl CacheStorage for LruCacheStorage {
|
|||
/// Apollo persisted queries extension.
|
||||
///
|
||||
/// [Reference](https://www.apollographql.com/docs/react/api/link/persisted-queries/)
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "apollo_persisted_queries")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "apollo_persisted_queries")))]
|
||||
pub struct ApolloPersistedQueries<T>(T);
|
||||
|
||||
impl<T: CacheStorage> ApolloPersistedQueries<T> {
|
||||
|
|
|
@ -53,7 +53,7 @@ impl Serialize for ResolveStat {
|
|||
/// have access to performance traces alongside the data returned by your query.
|
||||
/// It's already supported by `Apollo Engine`, and we're excited to see what other kinds of
|
||||
/// integrations people can build on top of this format.
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "apollo_tracing")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "apollo_tracing")))]
|
||||
pub struct ApolloTracing;
|
||||
|
||||
impl ExtensionFactory for ApolloTracing {
|
||||
|
|
|
@ -7,7 +7,7 @@ use crate::parser::types::{ExecutableDocument, OperationType, Selection};
|
|||
use crate::{PathSegment, ServerError, Variables};
|
||||
|
||||
/// Logger extension
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "log")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "log")))]
|
||||
pub struct Logger;
|
||||
|
||||
impl ExtensionFactory for Logger {
|
||||
|
|
|
@ -29,7 +29,7 @@ const KEY_DEPTH: Key = Key::from_static_str("graphql.depth");
|
|||
|
||||
/// OpenTelemetry extension
|
||||
#[derive(Default)]
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "opentelemetry")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "opentelemetry")))]
|
||||
pub struct OpenTelemetry<T, U> {
|
||||
tracer: T,
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -53,7 +53,7 @@ fn resolve_span_id(resolver_id: usize) -> usize {
|
|||
/// });
|
||||
/// ```
|
||||
#[derive(Default)]
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "tracing")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "tracing")))]
|
||||
pub struct Tracing;
|
||||
|
||||
impl ExtensionFactory for Tracing {
|
||||
|
|
|
@ -171,7 +171,7 @@ mod validation;
|
|||
|
||||
pub mod context;
|
||||
#[cfg(feature = "dataloader")]
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "dataloader")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "dataloader")))]
|
||||
pub mod dataloader;
|
||||
pub mod extensions;
|
||||
pub mod guard;
|
||||
|
|
|
@ -8,7 +8,7 @@ use crate::{InputValueError, InputValueResult, Scalar, ScalarType, Value};
|
|||
/// A numeric value represented by a string.
|
||||
#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Serialize, Deserialize)]
|
||||
#[serde(transparent)]
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "string_number")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "string_number")))]
|
||||
pub struct StringNumber<T: Num + Display>(pub T);
|
||||
|
||||
#[Scalar(internal)]
|
||||
|
|
|
@ -40,7 +40,7 @@ impl UploadValue {
|
|||
}
|
||||
|
||||
#[cfg(feature = "unblock")]
|
||||
#[cfg_attr(docrs, doc(cfg(feature = "unblock")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "unblock")))]
|
||||
/// Convert to a `AsyncRead`.
|
||||
pub fn into_async_read(self) -> impl AsyncRead + Sync + Send + 'static {
|
||||
blocking::Unblock::new(self.content)
|
||||
|
|
Loading…
Reference in New Issue
Block a user