struct Murcure::Protos::PermissionQuery

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: true, repeated: false, default: nil, packed: false}, 2 => {name: :permissions, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :flush, 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 | Nil = nil, permissions : UInt32 | Nil = nil, flush : Bool | Nil = false.as(Bool)) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def channel_id : UInt32 | Nil #

def channel_id=(channel_id : UInt32 | Nil) #

def flush : Bool | Nil #

def flush=(flush : Bool | Nil) #

def permissions : UInt32 | Nil #

def permissions=(permissions : UInt32 | Nil) #

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

def to_protobuf #