packages feed

hercules-ci-api-0.8.3.0: src/Hercules/API/Build/DerivationEvent/BuiltOutput.hs

{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingStrategies #-}

module Hercules.API.Build.DerivationEvent.BuiltOutput where

import Data.OpenApi qualified as O3
import Hercules.API.Prelude

data BuiltOutput = BuiltOutput
  { outputName :: Text,
    outputPath :: Text,
    hash :: Text,
    size :: Int64,
    -- | Always 'Just' when agent >=0.10.1.
    references :: Maybe [Text]
  }
  deriving (Generic, Show, Eq)
  deriving anyclass (NFData, ToJSON, FromJSON, ToSchema, O3.ToSchema)