struct Murcure::Protos::ACL
- Murcure::Protos::ACL
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant Summary
-
FIELDS =
{1 => {name: :channel_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :inherit_acls, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 3 => {name: :groups, pb_type: ACL::ChanGroup, crystal_type: ACL::ChanGroup, cast_type: Array(ACL::ChanGroup)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :acls, pb_type: ACL::ChanACL, crystal_type: ACL::ChanACL, cast_type: Array(ACL::ChanACL)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :query, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(channel_id : UInt32, inherit_acls : Bool | Nil = true.as(Bool), groups : Array(ACL::ChanGroup) | Nil = nil, acls : Array(ACL::ChanACL) | Nil = nil, query : Bool | Nil = false.as(Bool))
Class Method Summary
Instance Method Summary
- #[](key : String)
- #acls : Array(ACL::ChanACL) | Nil
- #acls=(acls : Array(ACL::ChanACL) | Nil)
- #channel_id : UInt32
- #channel_id=(channel_id : UInt32)
- #groups : Array(ACL::ChanGroup) | Nil
- #groups=(groups : Array(ACL::ChanGroup) | Nil)
- #inherit_acls : Bool | Nil
- #inherit_acls=(inherit_acls : Bool | Nil)
- #query : Bool | Nil
- #query=(query : Bool | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(channel_id : UInt32, inherit_acls : Bool | Nil = true.as(Bool), groups : Array(ACL::ChanGroup) | Nil = nil, acls : Array(ACL::ChanACL) | Nil = nil, query : Bool | Nil = false.as(Bool))
#