pub struct GraphQLClientConfig {
pub endpoint: String,
pub ws_endpoint: Option<String>,
pub timeout: Duration,
pub default_headers: Vec<(String, String)>,
pub batching: bool,
pub max_batch_size: usize,
pub batch_delay: Duration,
pub caching: bool,
pub cache_ttl: Duration,
pub user_agent: String,
pub retry_enabled: bool,
pub max_retries: u32,
}Expand description
GraphQL client configuration.
Fields§
§endpoint: StringGraphQL endpoint URL.
ws_endpoint: Option<String>WebSocket endpoint URL (for subscriptions).
timeout: DurationRequest timeout.
default_headers: Vec<(String, String)>Default headers for all requests.
batching: boolEnable request batching.
max_batch_size: usizeMaximum batch size.
batch_delay: DurationBatch delay (wait time to collect queries).
caching: boolEnable response caching.
cache_ttl: DurationCache TTL.
user_agent: StringUser agent string.
retry_enabled: boolRetry failed requests.
max_retries: u32Maximum retry attempts.
Implementations§
Trait Implementations§
Source§impl Clone for GraphQLClientConfig
impl Clone for GraphQLClientConfig
Source§fn clone(&self) -> GraphQLClientConfig
fn clone(&self) -> GraphQLClientConfig
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 GraphQLClientConfig
impl Debug for GraphQLClientConfig
Auto Trait Implementations§
impl Freeze for GraphQLClientConfig
impl RefUnwindSafe for GraphQLClientConfig
impl Send for GraphQLClientConfig
impl Sync for GraphQLClientConfig
impl Unpin for GraphQLClientConfig
impl UnwindSafe for GraphQLClientConfig
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