struct Murcure::Protos::PermissionDenied
- Murcure::Protos::PermissionDenied
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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 Summary
Instance Method Summary
- #[](key : String)
- #channel_id : UInt32 | Nil
- #channel_id=(channel_id : UInt32 | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #permission : UInt32 | Nil
- #permission=(permission : UInt32 | Nil)
- #reason : String | Nil
- #reason=(reason : String | Nil)
- #session : UInt32 | Nil
- #session=(session : UInt32 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #type : PermissionDenied::DenyType | Nil
- #type=(type : PermissionDenied::DenyType | Nil)
Constructor Detail
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)
#