{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Effects.EffectReference where

import Hercules.API.Prelude
import Hercules.API.Projects.SimpleJob (SimpleJob)

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