struct Murcure::Protos::ACL::ChanACL

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :apply_here, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 2 => {name: :apply_subs, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 3 => {name: :inherited, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 4 => {name: :user_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :group, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :grant, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :deny, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, 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(apply_here : Bool | Nil = true.as(Bool), apply_subs : Bool | Nil = true.as(Bool), inherited : Bool | Nil = true.as(Bool), user_id : UInt32 | Nil = nil, group : String | Nil = nil, grant : UInt32 | Nil = nil, deny : UInt32 | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def apply_here : Bool | Nil #

def apply_here=(apply_here : Bool | Nil) #

def apply_subs : Bool | Nil #

def apply_subs=(apply_subs : Bool | Nil) #

def deny : UInt32 | Nil #

def deny=(deny : UInt32 | Nil) #

def grant : UInt32 | Nil #

def grant=(grant : UInt32 | Nil) #

def group : String | Nil #

def group=(group : String | Nil) #

def inherited : Bool | Nil #

def inherited=(inherited : Bool | Nil) #

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

def to_protobuf #

def user_id : UInt32 | Nil #

def user_id=(user_id : UInt32 | Nil) #