Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.MessageSelfDestructType
Documentation
data MessageSelfDestructType Source #
Describes when a message will be self-destructed
Constructors
MessageSelfDestructTypeTimer | The message will be self-destructed in the specified time after its content was opened |
Fields
| |
MessageSelfDestructTypeImmediately | The message can be opened only once and will be self-destructed once closed |
Instances
FromJSON MessageSelfDestructType Source # | |
Defined in TD.Data.MessageSelfDestructType Methods parseJSON :: Value -> Parser MessageSelfDestructType # parseJSONList :: Value -> Parser [MessageSelfDestructType] # | |
ToJSON MessageSelfDestructType Source # | |
Defined in TD.Data.MessageSelfDestructType Methods toJSON :: MessageSelfDestructType -> Value # toEncoding :: MessageSelfDestructType -> Encoding # toJSONList :: [MessageSelfDestructType] -> Value # | |
Show MessageSelfDestructType Source # | |
Defined in TD.Data.MessageSelfDestructType Methods showsPrec :: Int -> MessageSelfDestructType -> ShowS # show :: MessageSelfDestructType -> String # showList :: [MessageSelfDestructType] -> ShowS # | |
Eq MessageSelfDestructType Source # | |
Defined in TD.Data.MessageSelfDestructType Methods (==) :: MessageSelfDestructType -> MessageSelfDestructType -> Bool # (/=) :: MessageSelfDestructType -> MessageSelfDestructType -> Bool # | |
ShortShow MessageSelfDestructType Source # | |
Defined in TD.Data.MessageSelfDestructType Methods |