pub struct GraphQLLoggingConfig {
pub enabled: bool,
pub format: Option<String>,
}
Expand description
Configuration for the logging middleware of the GraphQL server.
Fields§
§enabled: bool
If true, a request logging middleware is enabled.
format: Option<String>
The log format of the request logging middleware. See: https://docs.rs/actix-web/0.6.0/actix_web/middleware/struct.Logger.html#format
Trait Implementations§
Source§impl Clone for GraphQLLoggingConfig
impl Clone for GraphQLLoggingConfig
Source§fn clone(&self) -> GraphQLLoggingConfig
fn clone(&self) -> GraphQLLoggingConfig
Returns a copy 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 GraphQLLoggingConfig
impl Debug for GraphQLLoggingConfig
Source§impl Default for GraphQLLoggingConfig
impl Default for GraphQLLoggingConfig
Source§fn default() -> GraphQLLoggingConfig
fn default() -> GraphQLLoggingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphQLLoggingConfig
impl<'de> Deserialize<'de> for GraphQLLoggingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphQLLoggingConfig
impl RefUnwindSafe for GraphQLLoggingConfig
impl Send for GraphQLLoggingConfig
impl Sync for GraphQLLoggingConfig
impl Unpin for GraphQLLoggingConfig
impl UnwindSafe for GraphQLLoggingConfig
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