struct Murcure::Protos::ACL

Included Modules

Defined in:

murcure/utils/protos.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

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)) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def acls : Array(ACL::ChanACL) | Nil #

def acls=(acls : Array(ACL::ChanACL) | Nil) #

def channel_id : UInt32 #

def channel_id=(channel_id : UInt32) #

def groups : Array(ACL::ChanGroup) | Nil #

def groups=(groups : Array(ACL::ChanGroup) | Nil) #

def inherit_acls : Bool | Nil #

def inherit_acls=(inherit_acls : Bool | Nil) #

def query : Bool | Nil #

def query=(query : Bool | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #