Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hasura.RQL.Types.Roles
Synopsis
- newtype ParentRoles = ParentRoles {
- _unParentRoles :: HashSet RoleName
- data Role = Role {}
- type InheritedRole = Role
- newtype DropInheritedRole = DropInheritedRole {}
Documentation
newtype ParentRoles Source #
Constructors
ParentRoles | |
Fields
|
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
Constructors
Role | |
Fields
|
Instances
Eq Role Source # | |
Show Role Source # | |
Generic Role Source # | |
Hashable Role Source # | |
Defined in Hasura.RQL.Types.Roles | |
FromJSON Role Source # | |
Defined in Hasura.RQL.Types.Roles | |
ToJSON Role Source # | |
Defined in Hasura.RQL.Types.Roles Methods toEncoding :: Role -> Encoding toJSONList :: [Role] -> Value toEncodingList :: [Role] -> Encoding | |
Cacheable 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 #
Constructors
DropInheritedRole | |
Fields |
Instances
Eq DropInheritedRole Source # | |
Defined in Hasura.RQL.Types.Roles Methods (==) :: DropInheritedRole -> DropInheritedRole -> Bool # (/=) :: DropInheritedRole -> DropInheritedRole -> Bool # | |
Show DropInheritedRole Source # | |
Defined in Hasura.RQL.Types.Roles Methods showsPrec :: Int -> DropInheritedRole -> ShowS # show :: DropInheritedRole -> String # showList :: [DropInheritedRole] -> ShowS # | |
FromJSON DropInheritedRole Source # | |
Defined in Hasura.RQL.Types.Roles Methods parseJSON :: Value -> Parser DropInheritedRole parseJSONList :: Value -> Parser [DropInheritedRole] | |
ToJSON DropInheritedRole Source # | |
Defined in Hasura.RQL.Types.Roles Methods toJSON :: DropInheritedRole -> Value toEncoding :: DropInheritedRole -> Encoding toJSONList :: [DropInheritedRole] -> Value toEncodingList :: [DropInheritedRole] -> Encoding |