{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.SourceHostingSite.SimpleSite where

import Hercules.API.Prelude
import Hercules.API.SourceHostingSite.SourceHostingSite (SourceHostingSite)

data SimpleSite = SimpleSite
  { SimpleSite -> Id SourceHostingSite
id :: Id SourceHostingSite,
    SimpleSite -> Name SourceHostingSite
name :: Name SourceHostingSite,
    SimpleSite -> Text
displayName :: Text
  }
  deriving ((forall x. SimpleSite -> Rep SimpleSite x)
-> (forall x. Rep SimpleSite x -> SimpleSite) -> Generic SimpleSite
forall x. Rep SimpleSite x -> SimpleSite
forall x. SimpleSite -> Rep SimpleSite x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SimpleSite x -> SimpleSite
$cfrom :: forall x. SimpleSite -> Rep SimpleSite x
Generic, Int -> SimpleSite -> ShowS
[SimpleSite] -> ShowS
SimpleSite -> String
(Int -> SimpleSite -> ShowS)
-> (SimpleSite -> String)
-> ([SimpleSite] -> ShowS)
-> Show SimpleSite
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SimpleSite] -> ShowS
$cshowList :: [SimpleSite] -> ShowS
show :: SimpleSite -> String
$cshow :: SimpleSite -> String
showsPrec :: Int -> SimpleSite -> ShowS
$cshowsPrec :: Int -> SimpleSite -> ShowS
Show, SimpleSite -> SimpleSite -> Bool
(SimpleSite -> SimpleSite -> Bool)
-> (SimpleSite -> SimpleSite -> Bool) -> Eq SimpleSite
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SimpleSite -> SimpleSite -> Bool
$c/= :: SimpleSite -> SimpleSite -> Bool
== :: SimpleSite -> SimpleSite -> Bool
$c== :: SimpleSite -> SimpleSite -> Bool
Eq, SimpleSite -> ()
(SimpleSite -> ()) -> NFData SimpleSite
forall a. (a -> ()) -> NFData a
rnf :: SimpleSite -> ()
$crnf :: SimpleSite -> ()
NFData, [SimpleSite] -> Encoding
[SimpleSite] -> Value
SimpleSite -> Encoding
SimpleSite -> Value
(SimpleSite -> Value)
-> (SimpleSite -> Encoding)
-> ([SimpleSite] -> Value)
-> ([SimpleSite] -> Encoding)
-> ToJSON SimpleSite
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SimpleSite] -> Encoding
$ctoEncodingList :: [SimpleSite] -> Encoding
toJSONList :: [SimpleSite] -> Value
$ctoJSONList :: [SimpleSite] -> Value
toEncoding :: SimpleSite -> Encoding
$ctoEncoding :: SimpleSite -> Encoding
toJSON :: SimpleSite -> Value
$ctoJSON :: SimpleSite -> Value
ToJSON, Value -> Parser [SimpleSite]
Value -> Parser SimpleSite
(Value -> Parser SimpleSite)
-> (Value -> Parser [SimpleSite]) -> FromJSON SimpleSite
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SimpleSite]
$cparseJSONList :: Value -> Parser [SimpleSite]
parseJSON :: Value -> Parser SimpleSite
$cparseJSON :: Value -> Parser SimpleSite
FromJSON, Proxy SimpleSite -> Declare (Definitions Schema) NamedSchema
(Proxy SimpleSite -> Declare (Definitions Schema) NamedSchema)
-> ToSchema SimpleSite
forall a.
(Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a
declareNamedSchema :: Proxy SimpleSite -> Declare (Definitions Schema) NamedSchema
$cdeclareNamedSchema :: Proxy SimpleSite -> Declare (Definitions Schema) NamedSchema
ToSchema)