protobuf::reflect

Trait ProtobufValue

Source
pub trait ProtobufValue:
    Clone
    + Default
    + Debug
    + Send
    + Sync
    + Sized
    + 'static {
    type RuntimeType: RuntimeTypeTrait<Value = Self>;
}
Expand description

Type implemented by all protobuf singular types (primitives, string, messages, enums).

Used in reflection.

Required Associated Types§

Source

type RuntimeType: RuntimeTypeTrait<Value = Self>

Actual implementation of type properties.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ProtobufValue for bool

Source§

type RuntimeType = RuntimeTypeBool

Source§

impl ProtobufValue for f32

Source§

type RuntimeType = RuntimeTypeF32

Source§

impl ProtobufValue for f64

Source§

type RuntimeType = RuntimeTypeF64

Source§

impl ProtobufValue for i32

Source§

type RuntimeType = RuntimeTypeI32

Source§

impl ProtobufValue for i64

Source§

type RuntimeType = RuntimeTypeI64

Source§

impl ProtobufValue for u32

Source§

type RuntimeType = RuntimeTypeU32

Source§

impl ProtobufValue for u64

Source§

type RuntimeType = RuntimeTypeU64

Source§

impl ProtobufValue for String

Source§

type RuntimeType = RuntimeTypeString

Source§

impl ProtobufValue for Vec<u8>

Source§

type RuntimeType = RuntimeTypeVecU8

Implementors§

Source§

impl ProtobufValue for ExtensionRange

Source§

type RuntimeType = RuntimeTypeMessage<ExtensionRange>

Source§

impl ProtobufValue for ReservedRange

Source§

type RuntimeType = RuntimeTypeMessage<ReservedRange>

Source§

impl ProtobufValue for EnumReservedRange

Source§

type RuntimeType = RuntimeTypeMessage<EnumReservedRange>

Source§

impl ProtobufValue for Annotation

Source§

type RuntimeType = RuntimeTypeMessage<Annotation>

Source§

impl ProtobufValue for Location

Source§

type RuntimeType = RuntimeTypeMessage<Location>

Source§

impl ProtobufValue for DescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<DescriptorProto>

Source§

impl ProtobufValue for EnumDescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<EnumDescriptorProto>

Source§

impl ProtobufValue for EnumOptions

Source§

type RuntimeType = RuntimeTypeMessage<EnumOptions>

Source§

impl ProtobufValue for EnumValueDescriptorProto

Source§

impl ProtobufValue for EnumValueOptions

Source§

type RuntimeType = RuntimeTypeMessage<EnumValueOptions>

Source§

impl ProtobufValue for ExtensionRangeOptions

Source§

type RuntimeType = RuntimeTypeMessage<ExtensionRangeOptions>

Source§

impl ProtobufValue for FieldDescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<FieldDescriptorProto>

Source§

impl ProtobufValue for FieldOptions

Source§

type RuntimeType = RuntimeTypeMessage<FieldOptions>

Source§

impl ProtobufValue for FileDescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<FileDescriptorProto>

Source§

impl ProtobufValue for FileDescriptorSet

Source§

type RuntimeType = RuntimeTypeMessage<FileDescriptorSet>

Source§

impl ProtobufValue for FileOptions

Source§

type RuntimeType = RuntimeTypeMessage<FileOptions>

Source§

impl ProtobufValue for GeneratedCodeInfo

Source§

type RuntimeType = RuntimeTypeMessage<GeneratedCodeInfo>

Source§

impl ProtobufValue for MessageOptions

Source§

type RuntimeType = RuntimeTypeMessage<MessageOptions>

Source§

impl ProtobufValue for MethodDescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<MethodDescriptorProto>

Source§

impl ProtobufValue for MethodOptions

Source§

type RuntimeType = RuntimeTypeMessage<MethodOptions>

Source§

impl ProtobufValue for OneofDescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<OneofDescriptorProto>

Source§

impl ProtobufValue for OneofOptions

Source§

type RuntimeType = RuntimeTypeMessage<OneofOptions>

Source§

impl ProtobufValue for ServiceDescriptorProto

Source§

type RuntimeType = RuntimeTypeMessage<ServiceDescriptorProto>

Source§

impl ProtobufValue for ServiceOptions

Source§

type RuntimeType = RuntimeTypeMessage<ServiceOptions>

Source§

impl ProtobufValue for SourceCodeInfo

Source§

type RuntimeType = RuntimeTypeMessage<SourceCodeInfo>

Source§

impl ProtobufValue for UninterpretedOption

Source§

type RuntimeType = RuntimeTypeMessage<UninterpretedOption>

Source§

impl ProtobufValue for NamePart

Source§

type RuntimeType = RuntimeTypeMessage<NamePart>

Source§

impl ProtobufValue for File

Source§

type RuntimeType = RuntimeTypeMessage<File>

Source§

impl ProtobufValue for CodeGeneratorRequest

Source§

type RuntimeType = RuntimeTypeMessage<CodeGeneratorRequest>

Source§

impl ProtobufValue for CodeGeneratorResponse

Source§

type RuntimeType = RuntimeTypeMessage<CodeGeneratorResponse>

Source§

impl ProtobufValue for Version

Source§

type RuntimeType = RuntimeTypeMessage<Version>

Source§

impl ProtobufValue for Any

Source§

type RuntimeType = RuntimeTypeMessage<Any>

Source§

impl ProtobufValue for Api

Source§

type RuntimeType = RuntimeTypeMessage<Api>

Source§

impl ProtobufValue for Method

Source§

type RuntimeType = RuntimeTypeMessage<Method>

Source§

impl ProtobufValue for Mixin

Source§

type RuntimeType = RuntimeTypeMessage<Mixin>

Source§

impl ProtobufValue for Duration

Source§

type RuntimeType = RuntimeTypeMessage<Duration>

Source§

impl ProtobufValue for Empty

Source§

type RuntimeType = RuntimeTypeMessage<Empty>

Source§

impl ProtobufValue for FieldMask

Source§

type RuntimeType = RuntimeTypeMessage<FieldMask>

Source§

impl ProtobufValue for SourceContext

Source§

type RuntimeType = RuntimeTypeMessage<SourceContext>

Source§

impl ProtobufValue for ListValue

Source§

type RuntimeType = RuntimeTypeMessage<ListValue>

Source§

impl ProtobufValue for Struct

Source§

type RuntimeType = RuntimeTypeMessage<Struct>

Source§

impl ProtobufValue for Value

Source§

type RuntimeType = RuntimeTypeMessage<Value>

Source§

impl ProtobufValue for Timestamp

Source§

type RuntimeType = RuntimeTypeMessage<Timestamp>

Source§

impl ProtobufValue for Enum

Source§

type RuntimeType = RuntimeTypeMessage<Enum>

Source§

impl ProtobufValue for EnumValue

Source§

type RuntimeType = RuntimeTypeMessage<EnumValue>

Source§

impl ProtobufValue for Field

Source§

type RuntimeType = RuntimeTypeMessage<Field>

Source§

impl ProtobufValue for Option

Source§

type RuntimeType = RuntimeTypeMessage<Option>

Source§

impl ProtobufValue for Type

Source§

type RuntimeType = RuntimeTypeMessage<Type>

Source§

impl ProtobufValue for BoolValue

Source§

type RuntimeType = RuntimeTypeMessage<BoolValue>

Source§

impl ProtobufValue for BytesValue

Source§

type RuntimeType = RuntimeTypeMessage<BytesValue>

Source§

impl ProtobufValue for DoubleValue

Source§

type RuntimeType = RuntimeTypeMessage<DoubleValue>

Source§

impl ProtobufValue for FloatValue

Source§

type RuntimeType = RuntimeTypeMessage<FloatValue>

Source§

impl ProtobufValue for Int32Value

Source§

type RuntimeType = RuntimeTypeMessage<Int32Value>

Source§

impl ProtobufValue for Int64Value

Source§

type RuntimeType = RuntimeTypeMessage<Int64Value>

Source§

impl ProtobufValue for StringValue

Source§

type RuntimeType = RuntimeTypeMessage<StringValue>

Source§

impl ProtobufValue for UInt32Value

Source§

type RuntimeType = RuntimeTypeMessage<UInt32Value>

Source§

impl ProtobufValue for UInt64Value

Source§

type RuntimeType = RuntimeTypeMessage<UInt64Value>

Source§

impl<E: EnumFull> ProtobufValue for EnumOrUnknown<E>

Source§

type RuntimeType = RuntimeTypeEnumOrUnknown<E>