struct Murcure::Protos::BanList

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :bans, pb_type: BanList::BanEntry, crystal_type: BanList::BanEntry, cast_type: Array(BanList::BanEntry)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 2 => {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(bans : Array(BanList::BanEntry) | Nil = nil, query : Bool | Nil = false.as(Bool)) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def bans : Array(BanList::BanEntry) | Nil #

def bans=(bans : Array(BanList::BanEntry) | Nil) #

def query : Bool | Nil #

def query=(query : Bool | Nil) #

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

def to_protobuf #