plutus-tx-1.60.0.0: Libraries for Plutus Tx and its prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Blueprint.Schema.Annotation

Synopsis

Documentation

data SchemaInfo #

Additional information optionally attached to any datatype schema definition.

Instances

Instances details
Data SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaInfo -> c SchemaInfo #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaInfo #

toConstr :: SchemaInfo -> Constr #

dataTypeOf :: SchemaInfo -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaInfo) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaInfo) #

gmapT :: (forall b. Data b => b -> b) -> SchemaInfo -> SchemaInfo #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaInfo -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaInfo -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaInfo -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaInfo -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaInfo -> m SchemaInfo #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaInfo -> m SchemaInfo #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaInfo -> m SchemaInfo #

Generic SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Associated Types

type Rep SchemaInfo :: Type -> Type #

Show SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Eq SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Ord SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Lift SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

lift :: Quote m => SchemaInfo -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SchemaInfo -> Code m SchemaInfo #

type Rep SchemaInfo # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

type Rep SchemaInfo = D1 ('MetaData "SchemaInfo" "PlutusTx.Blueprint.Schema.Annotation" "plutus-tx-1.60.0.0-inplace" 'False) (C1 ('MetaCons "MkSchemaInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe String)))))

data SchemaAnn #

Annotation that can be attached to a schema definition.

Instances

Instances details
Data SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaAnn -> c SchemaAnn #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaAnn #

toConstr :: SchemaAnn -> Constr #

dataTypeOf :: SchemaAnn -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaAnn) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaAnn) #

gmapT :: (forall b. Data b => b -> b) -> SchemaAnn -> SchemaAnn #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaAnn -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaAnn -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaAnn -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaAnn -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaAnn -> m SchemaAnn #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaAnn -> m SchemaAnn #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaAnn -> m SchemaAnn #

Generic SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Associated Types

type Rep SchemaAnn :: Type -> Type #

Show SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Eq SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Ord SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Lift SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

lift :: Quote m => SchemaAnn -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SchemaAnn -> Code m SchemaAnn #

type Rep SchemaAnn # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

type Rep SchemaAnn = D1 ('MetaData "SchemaAnn" "PlutusTx.Blueprint.Schema.Annotation" "plutus-tx-1.60.0.0-inplace" 'False) (C1 ('MetaCons "MkSchemaAnnTitle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaTitle)) :+: (C1 ('MetaCons "MkSchemaAnnDescription" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaDescription)) :+: C1 ('MetaCons "MkSchemaAnnComment" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaComment))))

newtype SchemaTitle #

An annotation for the "title" schema attribute.

This annotation could be attached to a type or constructor: {-# ANN type MyFoo (SchemaTitle "My Foo Title") #-} {-# ANN MkMyFoo (SchemaTitle Title) #-} newtype MyFoo = MkMyFoo Int

Constructors

SchemaTitle 
 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

toJSON :: SchemaTitle -> Value

toEncoding :: SchemaTitle -> Encoding

toJSONList :: [SchemaTitle] -> Value

toEncodingList :: [SchemaTitle] -> Encoding

omitField :: SchemaTitle -> Bool

Data SchemaTitle # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaTitle -> c SchemaTitle #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaTitle #

toConstr :: SchemaTitle -> Constr #

dataTypeOf :: SchemaTitle -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaTitle) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaTitle) #

gmapT :: (forall b. Data b => b -> b) -> SchemaTitle -> SchemaTitle #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaTitle -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaTitle -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaTitle -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaTitle -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaTitle -> m SchemaTitle #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaTitle -> m SchemaTitle #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaTitle -> m SchemaTitle #

Show SchemaTitle # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Eq SchemaTitle # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Ord SchemaTitle # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Lift SchemaTitle # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

lift :: Quote m => SchemaTitle -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SchemaTitle -> Code m SchemaTitle #

newtype SchemaDescription #

An annotation for the "description" schema attribute.

This annotation could be attached to a type or constructor: {-# ANN type MyFoo (SchemaDescription "My Foo Description") #-} {-# ANN MkMyFoo (SchemaDescription Description) #-} newtype MyFoo = MkMyFoo Int

Constructors

SchemaDescription 
 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Data SchemaDescription # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaDescription -> c SchemaDescription #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaDescription #

toConstr :: SchemaDescription -> Constr #

dataTypeOf :: SchemaDescription -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaDescription) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaDescription) #

gmapT :: (forall b. Data b => b -> b) -> SchemaDescription -> SchemaDescription #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaDescription -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaDescription -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaDescription -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaDescription -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaDescription -> m SchemaDescription #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaDescription -> m SchemaDescription #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaDescription -> m SchemaDescription #

Show SchemaDescription # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Eq SchemaDescription # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Ord SchemaDescription # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Lift SchemaDescription # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

lift :: Quote m => SchemaDescription -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SchemaDescription -> Code m SchemaDescription #

newtype SchemaComment #

An annotation for the "$comment" schema attribute.

This annotation could be attached to a type or constructor: {-# ANN type MyFoo (SchemaComment "My Foo Comment") #-} {-# ANN MkMyFoo (SchemaComment Comment) #-} newtype MyFoo = MkMyFoo Int

Constructors

SchemaComment 
 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Data SchemaComment # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaComment -> c SchemaComment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaComment #

toConstr :: SchemaComment -> Constr #

dataTypeOf :: SchemaComment -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaComment) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaComment) #

gmapT :: (forall b. Data b => b -> b) -> SchemaComment -> SchemaComment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaComment -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaComment -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaComment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaComment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaComment -> m SchemaComment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaComment -> m SchemaComment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaComment -> m SchemaComment #

Show SchemaComment # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Eq SchemaComment # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Ord SchemaComment # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Lift SchemaComment # 
Instance details

Defined in PlutusTx.Blueprint.Schema.Annotation

Methods

lift :: Quote m => SchemaComment -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SchemaComment -> Code m SchemaComment #