struct Murcure::Protos::PermissionDenied

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :permission, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :channel_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :session, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :reason, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :type, pb_type: PermissionDenied::DenyType, crystal_type: PermissionDenied::DenyType, cast_type: PermissionDenied::DenyType?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, 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(permission : UInt32 | Nil = nil, channel_id : UInt32 | Nil = nil, session : UInt32 | Nil = nil, reason : String | Nil = nil, type : PermissionDenied::DenyType | Nil = nil, name : String | Nil = nil) #

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 name : String | Nil #

def name=(name : String | Nil) #

def permission : UInt32 | Nil #

def permission=(permission : UInt32 | Nil) #

def reason : String | Nil #

def reason=(reason : String | Nil) #

def session : UInt32 | Nil #

def session=(session : UInt32 | Nil) #

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

def to_protobuf #

def type : PermissionDenied::DenyType | Nil #

def type=(type : PermissionDenied::DenyType | Nil) #