Trait prost_reflect::ReflectMessage
source · pub trait ReflectMessage: Message {
// Required method
fn descriptor(&self) -> MessageDescriptor;
// Provided method
fn transcode_to_dynamic(&self) -> DynamicMessage
where Self: Sized { ... }
}
Expand description
Trait for message types that support reflection.
Required Methods§
sourcefn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Gets a MessageDescriptor
describing the type of this message.
Provided Methods§
sourcefn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
Converts this message into an instance of DynamicMessage
by going
through the byte representation.
Implementations on Foreign Types§
source§impl ReflectMessage for bool
impl ReflectMessage for bool
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.BoolValue
message type.
source§impl ReflectMessage for f32
impl ReflectMessage for f32
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FloatValue
message type.
source§impl ReflectMessage for f64
impl ReflectMessage for f64
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.DoubleValue
message type.
source§impl ReflectMessage for i32
impl ReflectMessage for i32
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Int32Value
message type.
source§impl ReflectMessage for i64
impl ReflectMessage for i64
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Int64Value
message type.
source§impl ReflectMessage for u32
impl ReflectMessage for u32
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.UInt32Value
message type.
source§impl ReflectMessage for u64
impl ReflectMessage for u64
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.UInt64Value
message type.
source§impl ReflectMessage for ()
impl ReflectMessage for ()
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Empty
message type.
source§impl ReflectMessage for String
impl ReflectMessage for String
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.StringValue
message type.
source§impl ReflectMessage for Vec<u8>
impl ReflectMessage for Vec<u8>
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.BytesValue
message type.
source§impl ReflectMessage for Bytes
impl ReflectMessage for Bytes
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.BytesValue
message type.
source§impl ReflectMessage for File
impl ReflectMessage for File
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.compiler.CodeGeneratorResponse.File
message type.
source§impl ReflectMessage for CodeGeneratorRequest
impl ReflectMessage for CodeGeneratorRequest
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.compiler.CodeGeneratorRequest
message type.
source§impl ReflectMessage for CodeGeneratorResponse
impl ReflectMessage for CodeGeneratorResponse
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.compiler.CodeGeneratorResponse
message type.
source§impl ReflectMessage for Version
impl ReflectMessage for Version
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.compiler.Version
message type.
source§impl ReflectMessage for ExtensionRange
impl ReflectMessage for ExtensionRange
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.DescriptorProto.ExtensionRange
message type.
source§impl ReflectMessage for ReservedRange
impl ReflectMessage for ReservedRange
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.DescriptorProto.ReservedRange
message type.
source§impl ReflectMessage for EnumReservedRange
impl ReflectMessage for EnumReservedRange
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.EnumDescriptorProto.EnumReservedRange
message type.
source§impl ReflectMessage for Annotation
impl ReflectMessage for Annotation
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.GeneratedCodeInfo.Annotation
message type.
source§impl ReflectMessage for Location
impl ReflectMessage for Location
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.SourceCodeInfo.Location
message type.
source§impl ReflectMessage for Any
impl ReflectMessage for Any
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Any
message type.
source§impl ReflectMessage for Api
impl ReflectMessage for Api
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Api
message type.
source§impl ReflectMessage for DescriptorProto
impl ReflectMessage for DescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.DescriptorProto
message type.
source§impl ReflectMessage for Duration
impl ReflectMessage for Duration
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Duration
message type.
source§impl ReflectMessage for Enum
impl ReflectMessage for Enum
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Enum
message type.
source§impl ReflectMessage for EnumDescriptorProto
impl ReflectMessage for EnumDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.EnumDescriptorProto
message type.
source§impl ReflectMessage for EnumOptions
impl ReflectMessage for EnumOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.EnumOptions
message type.
source§impl ReflectMessage for EnumValue
impl ReflectMessage for EnumValue
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.EnumValue
message type.
source§impl ReflectMessage for EnumValueDescriptorProto
impl ReflectMessage for EnumValueDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.EnumValueDescriptorProto
message type.
source§impl ReflectMessage for EnumValueOptions
impl ReflectMessage for EnumValueOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.EnumValueOptions
message type.
source§impl ReflectMessage for ExtensionRangeOptions
impl ReflectMessage for ExtensionRangeOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.ExtensionRangeOptions
message type.
source§impl ReflectMessage for Field
impl ReflectMessage for Field
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Field
message type.
source§impl ReflectMessage for FieldDescriptorProto
impl ReflectMessage for FieldDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FieldDescriptorProto
message type.
source§impl ReflectMessage for FieldMask
impl ReflectMessage for FieldMask
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FieldMask
message type.
source§impl ReflectMessage for FieldOptions
impl ReflectMessage for FieldOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FieldOptions
message type.
source§impl ReflectMessage for FileDescriptorProto
impl ReflectMessage for FileDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FileDescriptorProto
message type.
source§impl ReflectMessage for FileDescriptorSet
impl ReflectMessage for FileDescriptorSet
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FileDescriptorSet
message type.
source§impl ReflectMessage for FileOptions
impl ReflectMessage for FileOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.FileOptions
message type.
source§impl ReflectMessage for GeneratedCodeInfo
impl ReflectMessage for GeneratedCodeInfo
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.GeneratedCodeInfo
message type.
source§impl ReflectMessage for ListValue
impl ReflectMessage for ListValue
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.ListValue
message type.
source§impl ReflectMessage for MessageOptions
impl ReflectMessage for MessageOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.MessageOptions
message type.
source§impl ReflectMessage for Method
impl ReflectMessage for Method
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Method
message type.
source§impl ReflectMessage for MethodDescriptorProto
impl ReflectMessage for MethodDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.MethodDescriptorProto
message type.
source§impl ReflectMessage for MethodOptions
impl ReflectMessage for MethodOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.MethodOptions
message type.
source§impl ReflectMessage for Mixin
impl ReflectMessage for Mixin
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Mixin
message type.
source§impl ReflectMessage for OneofDescriptorProto
impl ReflectMessage for OneofDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.OneofDescriptorProto
message type.
source§impl ReflectMessage for OneofOptions
impl ReflectMessage for OneofOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.OneofOptions
message type.
source§impl ReflectMessage for Option
impl ReflectMessage for Option
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Option
message type.
source§impl ReflectMessage for ServiceDescriptorProto
impl ReflectMessage for ServiceDescriptorProto
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.ServiceDescriptorProto
message type.
source§impl ReflectMessage for ServiceOptions
impl ReflectMessage for ServiceOptions
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.ServiceOptions
message type.
source§impl ReflectMessage for SourceCodeInfo
impl ReflectMessage for SourceCodeInfo
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.SourceCodeInfo
message type.
source§impl ReflectMessage for SourceContext
impl ReflectMessage for SourceContext
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.SourceContext
message type.
source§impl ReflectMessage for Struct
impl ReflectMessage for Struct
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Struct
message type.
source§impl ReflectMessage for Timestamp
impl ReflectMessage for Timestamp
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Timestamp
message type.
source§impl ReflectMessage for Type
impl ReflectMessage for Type
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Type
message type.
source§impl ReflectMessage for UninterpretedOption
impl ReflectMessage for UninterpretedOption
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.UninterpretedOption
message type.
source§impl ReflectMessage for Value
impl ReflectMessage for Value
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.Value
message type.
source§impl ReflectMessage for NamePart
impl ReflectMessage for NamePart
source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Returns a descriptor for the google.protobuf.UninterpretedOption.NamePart
message type.