module TD.Query.DisableProxy
(DisableProxy(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data DisableProxy
= DisableProxy
deriving (DisableProxy -> DisableProxy -> Bool
(DisableProxy -> DisableProxy -> Bool)
-> (DisableProxy -> DisableProxy -> Bool) -> Eq DisableProxy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DisableProxy -> DisableProxy -> Bool
== :: DisableProxy -> DisableProxy -> Bool
$c/= :: DisableProxy -> DisableProxy -> Bool
/= :: DisableProxy -> DisableProxy -> Bool
Eq, Int -> DisableProxy -> ShowS
[DisableProxy] -> ShowS
DisableProxy -> String
(Int -> DisableProxy -> ShowS)
-> (DisableProxy -> String)
-> ([DisableProxy] -> ShowS)
-> Show DisableProxy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DisableProxy -> ShowS
showsPrec :: Int -> DisableProxy -> ShowS
$cshow :: DisableProxy -> String
show :: DisableProxy -> String
$cshowList :: [DisableProxy] -> ShowS
showList :: [DisableProxy] -> ShowS
Show)
instance I.ShortShow DisableProxy where
shortShow :: DisableProxy -> String
shortShow
DisableProxy
DisableProxy
= String
"DisableProxy"
instance AT.ToJSON DisableProxy where
toJSON :: DisableProxy -> Value
toJSON
DisableProxy
DisableProxy
= [Pair] -> Value
A.object
[ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"disableProxy"
]