Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data RoleName
- roleNameToTxt :: RoleName -> Text
- mkRoleName :: Text -> Maybe RoleName
- mkRoleNameSafe :: NonEmptyText -> RoleName
- adminRoleName :: RoleName
- newtype ParentRoles = ParentRoles {}
- data Role = Role {}
- type InheritedRole = Role
- newtype DropInheritedRole = DropInheritedRole {}
Documentation
Instances
FromJSON RoleName Source # | |
FromJSONKey RoleName Source # | |
ToJSON RoleName Source # | |
ToJSONKey RoleName Source # | |
Defined in Hasura.RQL.Types.Roles | |
HasCodec RoleName Source # | |
Generic RoleName Source # | |
Show RoleName Source # | |
NFData RoleName Source # | |
Defined in Hasura.RQL.Types.Roles | |
Eq RoleName Source # | |
Ord RoleName Source # | |
Defined in Hasura.RQL.Types.Roles | |
FromEnv RoleName Source # | |
Hashable RoleName Source # | |
ToTxt RoleName Source # | |
FromCol RoleName Source # | |
Defined in Hasura.RQL.Types.Roles | |
ToPrepArg RoleName Source # | |
type Rep RoleName Source # | |
Defined in Hasura.RQL.Types.Roles type Rep RoleName = D1 ('MetaData "RoleName" "Hasura.RQL.Types.Roles" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RoleName" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRoleTxt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonEmptyText))) |
roleNameToTxt :: RoleName -> Text Source #
newtype ParentRoles Source #
Instances
The Role
type represents a role by
containing its name and the names of its parent roles.
This type is used externally in the add_inherited_role
metadata API and is also used internally
in the permission building
part of the schema cache building process
Role | |
|
Instances
FromJSON Role Source # | |
ToJSON Role Source # | |
HasCodec Role Source # | |
Generic Role Source # | |
Show Role Source # | |
Eq Role Source # | |
Hashable Role Source # | |
type Rep Role Source # | |
Defined in Hasura.RQL.Types.Roles type Rep Role = D1 ('MetaData "Role" "Hasura.RQL.Types.Roles" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Role" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rRoleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName) :*: S1 ('MetaSel ('Just "_rParentRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ParentRoles))) |
type InheritedRole = Role Source #
newtype DropInheritedRole Source #