| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
UserManagement.User
Synopsis
- data User = User {}
- data UserCreate = UserCreate {}
- data FullUser = FullUser {}
- data GroupRole = GroupRole {}
- data UserInfo = UserInfo {}
- data Role
- type UserID = UUID
- roleToText :: Role -> Text
- textToRole :: Text -> Maybe Role
Documentation
Instances
data UserCreate Source #
Constructors
| UserCreate | |
Fields | |
Constructors
| FullUser | |
Fields
| |
Instances
| ToJSON FullUser Source # | |||||
Defined in UserManagement.User Methods toEncoding :: FullUser -> Encoding toJSONList :: [FullUser] -> Value toEncodingList :: [FullUser] -> Encoding | |||||
| Generic FullUser Source # | |||||
Defined in UserManagement.User Associated Types
| |||||
| ToSchema FullUser Source # | |||||
Defined in UserManagement.User Methods declareNamedSchema :: Proxy FullUser -> Declare (Definitions Schema) NamedSchema | |||||
| type Rep FullUser Source # | |||||
Defined in UserManagement.User type Rep FullUser = D1 ('MetaData "FullUser" "UserManagement.User" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "FullUser" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fullUserID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserID) :*: S1 ('MetaSel ('Just "fullUserName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "fullUserEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "fullUserIsSuperadmin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "fullUserRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GroupRole]))))) | |||||
Instances
| ToJSON GroupRole Source # | |
Defined in UserManagement.User Methods toEncoding :: GroupRole -> Encoding toJSONList :: [GroupRole] -> Value toEncodingList :: [GroupRole] -> Encoding | |
| Generic GroupRole Source # | |
| ToSchema GroupRole Source # | |
Defined in UserManagement.User Methods declareNamedSchema :: Proxy GroupRole -> Declare (Definitions Schema) NamedSchema | |
| type Rep GroupRole Source # | |
Defined in UserManagement.User | |
used for necessary user info inside a group
Constructors
| UserInfo | |
Fields
| |
Instances
| ToJSON UserInfo Source # | |||||
Defined in UserManagement.User Methods toEncoding :: UserInfo -> Encoding toJSONList :: [UserInfo] -> Value toEncodingList :: [UserInfo] -> Encoding | |||||
| Generic UserInfo Source # | |||||
Defined in UserManagement.User Associated Types
| |||||
| Show UserInfo Source # | |||||
| Eq UserInfo Source # | |||||
| ToSchema UserInfo Source # | |||||
Defined in UserManagement.User Methods declareNamedSchema :: Proxy UserInfo -> Declare (Definitions Schema) NamedSchema | |||||
| type Rep UserInfo Source # | |||||
Defined in UserManagement.User type Rep UserInfo = D1 ('MetaData "UserInfo" "UserManagement.User" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "UserInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userInfoID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserID) :*: S1 ('MetaSel ('Just "userInfoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "userInfoEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "userInfoRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Role)))) | |||||
Instances
| FromJSON Role Source # | |
Defined in UserManagement.User | |
| ToJSON Role Source # | |
Defined in UserManagement.User Methods toEncoding :: Role -> Encoding toJSONList :: [Role] -> Value toEncodingList :: [Role] -> Encoding | |
| Generic Role Source # | |
Defined in UserManagement.User | |
| Read Role Source # | |
| Show Role Source # | |
| Eq Role Source # | |
| ToSchema Role Source # | |
Defined in UserManagement.User Methods declareNamedSchema :: Proxy Role -> Declare (Definitions Schema) NamedSchema | |
| type Rep Role Source # | |
roleToText :: Role -> Text Source #