| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Blockfrost.Types.IPFS
Description
Types for IPFS servics
Synopsis
- data IPFSAdd = IPFSAdd {}
- data IPFSPinChange = IPFSPinChange {}
- data IPFSPin = IPFSPin {}
- data PinState
- newtype IPFSData = IPFSData ByteString
Documentation
IPFS Add response
Constructors
| IPFSAdd | |
Fields
| |
Instances
data IPFSPinChange Source #
IPFS Pin Add response
Constructors
| IPFSPinChange | |
Fields
| |
Instances
| FromJSON IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS Methods parseJSON :: Value -> Parser IPFSPinChange # parseJSONList :: Value -> Parser [IPFSPinChange] # | |||||
| ToJSON IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS Methods toJSON :: IPFSPinChange -> Value # toEncoding :: IPFSPinChange -> Encoding # toJSONList :: [IPFSPinChange] -> Value # toEncodingList :: [IPFSPinChange] -> Encoding # omitField :: IPFSPinChange -> Bool # | |||||
| Generic IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS Associated Types
| |||||
| Show IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS Methods showsPrec :: Int -> IPFSPinChange -> ShowS # show :: IPFSPinChange -> String # showList :: [IPFSPinChange] -> ShowS # | |||||
| Eq IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS Methods (==) :: IPFSPinChange -> IPFSPinChange -> Bool # (/=) :: IPFSPinChange -> IPFSPinChange -> Bool # | |||||
| ToSample IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS Methods toSamples :: Proxy IPFSPinChange -> [(Text, IPFSPinChange)] # | |||||
| HasIpfsHash IPFSPinChange Text Source # | |||||
Defined in Blockfrost.Lens | |||||
| HasState IPFSPinChange PinState Source # | |||||
Defined in Blockfrost.Lens | |||||
| type Rep IPFSPinChange Source # | |||||
Defined in Blockfrost.Types.IPFS type Rep IPFSPinChange = D1 ('MetaData "IPFSPinChange" "Blockfrost.Types.IPFS" "blockfrost-api-0.13.0.0-5VduFUrhiBL3cGPZJdyInJ" 'False) (C1 ('MetaCons "IPFSPinChange" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ipfsPinChangeIpfsHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_ipfsPinChangeState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PinState))) | |||||
IPFS Pin information
Constructors
| IPFSPin | |
Fields
| |
Instances
| FromJSON IPFSPin Source # | |||||
Defined in Blockfrost.Types.IPFS | |||||
| ToJSON IPFSPin Source # | |||||
| Generic IPFSPin Source # | |||||
Defined in Blockfrost.Types.IPFS Associated Types
| |||||
| Show IPFSPin Source # | |||||
| Eq IPFSPin Source # | |||||
| ToSample IPFSPin Source # | |||||
| HasIpfsHash IPFSPin Text Source # | |||||
| HasSize IPFSPin Quantity Source # | |||||
| HasState IPFSPin PinState Source # | |||||
| HasTimeCreated IPFSPin POSIXTime Source # | |||||
Defined in Blockfrost.Lens | |||||
| HasTimePinned IPFSPin POSIXTime Source # | |||||
Defined in Blockfrost.Lens | |||||
| type Rep IPFSPin Source # | |||||
Defined in Blockfrost.Types.IPFS type Rep IPFSPin = D1 ('MetaData "IPFSPin" "Blockfrost.Types.IPFS" "blockfrost-api-0.13.0.0-5VduFUrhiBL3cGPZJdyInJ" 'False) (C1 ('MetaCons "IPFSPin" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_ipfsPinTimeCreated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime) :*: S1 ('MetaSel ('Just "_ipfsPinTimePinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime)) :*: (S1 ('MetaSel ('Just "_ipfsPinIpfsHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_ipfsPinSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity) :*: S1 ('MetaSel ('Just "_ipfsPinState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PinState))))) | |||||
State of the pinned object,
which is Queued when we are retriving object.
If this is successful the state is changed to Pinned or Failed if not.
The state Gc means the pinned item has been garbage collected
due to account being over storage quota or after it has been
moved to Unpinned state by removing the object pin.
Instances
| FromJSON PinState Source # | |||||
Defined in Blockfrost.Types.IPFS | |||||
| ToJSON PinState Source # | |||||
| Generic PinState Source # | |||||
Defined in Blockfrost.Types.IPFS Associated Types
| |||||
| Show PinState Source # | |||||
| Eq PinState Source # | |||||
| Ord PinState Source # | |||||
Defined in Blockfrost.Types.IPFS | |||||
| HasState IPFSPin PinState Source # | |||||
| HasState IPFSPinChange PinState Source # | |||||
Defined in Blockfrost.Lens | |||||
| type Rep PinState Source # | |||||
Defined in Blockfrost.Types.IPFS type Rep PinState = D1 ('MetaData "PinState" "Blockfrost.Types.IPFS" "blockfrost-api-0.13.0.0-5VduFUrhiBL3cGPZJdyInJ" 'False) ((C1 ('MetaCons "Queued" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Pinned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Unpinned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Failed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Gc" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
Constructors
| IPFSData ByteString |
Instances
| Generic IPFSData Source # | |||||
Defined in Blockfrost.Types.IPFS Associated Types
| |||||
| Show IPFSData Source # | |||||
| Eq IPFSData Source # | |||||
| ToSample IPFSData Source # | |||||
| MimeRender OctetStream IPFSData Source # | |||||
Defined in Blockfrost.Types.IPFS Methods mimeRender :: Proxy OctetStream -> IPFSData -> ByteString # | |||||
| MimeRender PlainText IPFSData Source # | |||||
Defined in Blockfrost.Types.IPFS Methods mimeRender :: Proxy PlainText -> IPFSData -> ByteString # | |||||
| MimeUnrender OctetStream IPFSData Source # | |||||
Defined in Blockfrost.Types.IPFS Methods mimeUnrender :: Proxy OctetStream -> ByteString -> Either String IPFSData # mimeUnrenderWithType :: Proxy OctetStream -> MediaType -> ByteString -> Either String IPFSData # | |||||
| MimeUnrender PlainText IPFSData Source # | |||||
Defined in Blockfrost.Types.IPFS Methods mimeUnrender :: Proxy PlainText -> ByteString -> Either String IPFSData # mimeUnrenderWithType :: Proxy PlainText -> MediaType -> ByteString -> Either String IPFSData # | |||||
| type Rep IPFSData Source # | |||||
Defined in Blockfrost.Types.IPFS type Rep IPFSData = D1 ('MetaData "IPFSData" "Blockfrost.Types.IPFS" "blockfrost-api-0.13.0.0-5VduFUrhiBL3cGPZJdyInJ" 'True) (C1 ('MetaCons "IPFSData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |||||