moonbitstack/moonproto/desc does not have a README file

    Refused

    pub(all) suberror Refused {
    Name(String)
    Number(Int)
    Type(String)
    Syntax(String)
    }

    A build refusal.
    impl Show for Refused

    Refused::output

    fn Refused::output(self : Refused, logger : &Logger) -> Unit

    Refused::to_string

    fn Refused::to_string(self : Refused) -> String

    DescriptorProto

    pub(all) struct DescriptorProto {
    name : String
    field : Array[FieldDescriptorProto]
    nested_type : Array[DescriptorProto]
    enum_type : Array[EnumDescriptorProto]
    extension : Array[FieldDescriptorProto]
    oneof_decl : Array[OneofDescriptorProto]
    reserved_range : Array[(Int, Int)]
    reserved_name : Array[String]
    extension_range : Array[(Int, Int)]
    map_entry : Bool
    features : Features
    options : Array[(String, String)]
    }

    EnumDescriptorProto

    pub(all) struct EnumDescriptorProto {
    name : String
    value : Array[EnumValueDescriptorProto]
    features : Features
    options : Array[(String, String)]
    }

    EnumValueDescriptorProto

    pub(all) struct EnumValueDescriptorProto {
    name : String
    number : Int
    }

    Features

    pub(all) struct Features {
    field_presence : Int
    enum_type : Int
    repeated_field_encoding : Int
    message_encoding : Int
    utf8_validation : Int
    json_format : Int
    }

    The edition feature values that change how a declaration is interpreted. Zero means "inherit", which is what proto2 and proto3 files use.

    Features::merge

    fn Features::merge(parent : Features, child : Features) -> Features

    A child's features on top of its parent's: anything the child sets wins, anything it leaves at zero is inherited.

    Features::set

    fn Features::set(self : Features, name : String, value : String) -> Features

    Set one features.<name> value, leaving the name alone when it is not a feature. value is the identifier or boolean as written.

    FieldDescriptorProto

    pub(all) struct FieldDescriptorProto {
    name : String
    number : Int
    label : Int
    type_code : Int
    type_name : String?
    json_name : String?
    default_value : String?
    oneof_index : Int?
    proto3_optional : Bool
    packed_off : Bool
    extendee : String?
    features : Features
    options : Array[(String, String)]
    }

    FileDescriptorProto

    pub(all) struct FileDescriptorProto {
    name : String
    package_name : String
    syntax : String
    message_type : Array[DescriptorProto]
    enum_type : Array[EnumDescriptorProto]
    service : Array[ServiceDescriptorProto]
    extension : Array[FieldDescriptorProto]
    dependency : Array[String]
    public_dependency : Array[Int]
    edition : String?
    features : Features
    options : Array[(String, String)]
    }

    MethodDescriptorProto

    pub(all) struct MethodDescriptorProto {
    name : String
    input_type : String
    output_type : String
    client_streaming : Bool
    server_streaming : Bool
    }

    OneofDescriptorProto

    pub(all) struct OneofDescriptorProto {
    name : String
    }

    ServiceDescriptorProto

    pub(all) struct ServiceDescriptorProto {
    name : String
    methods : Array[MethodDescriptorProto]
    }

    build_file

    Build a runtime file descriptor from the proto form.

    features_auto

    let features_auto : Features

    to_file_descriptor_proto

    The proto form of a runtime file descriptor.

    to_json_name

    fn to_json_name(name : String) -> String

    foo_bar becomes fooBar, the JSON name default.

    Source Files