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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ProtobufValue for bool

§

type RuntimeType = RuntimeTypeBool

source§

impl ProtobufValue for f32

§

type RuntimeType = RuntimeTypeF32

source§

impl ProtobufValue for f64

§

type RuntimeType = RuntimeTypeF64

source§

impl ProtobufValue for i32

§

type RuntimeType = RuntimeTypeI32

source§

impl ProtobufValue for i64

§

type RuntimeType = RuntimeTypeI64

source§

impl ProtobufValue for u32

§

type RuntimeType = RuntimeTypeU32

source§

impl ProtobufValue for u64

§

type RuntimeType = RuntimeTypeU64

source§

impl ProtobufValue for String

§

type RuntimeType = RuntimeTypeString

source§

impl ProtobufValue for Vec<u8>

§

type RuntimeType = RuntimeTypeVecU8

source§

impl ProtobufValue for Bytes

§

type RuntimeType = RuntimeTypeTokioBytes

Implementors§

source§

impl ProtobufValue for ExtensionRange

§

type RuntimeType = RuntimeTypeMessage<ExtensionRange>

source§

impl ProtobufValue for ReservedRange

§

type RuntimeType = RuntimeTypeMessage<ReservedRange>

source§

impl ProtobufValue for EnumReservedRange

§

type RuntimeType = RuntimeTypeMessage<EnumReservedRange>

source§

impl ProtobufValue for Annotation

§

type RuntimeType = RuntimeTypeMessage<Annotation>

source§

impl ProtobufValue for Location

§

type RuntimeType = RuntimeTypeMessage<Location>

source§

impl ProtobufValue for DescriptorProto

§

type RuntimeType = RuntimeTypeMessage<DescriptorProto>

source§

impl ProtobufValue for EnumDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<EnumDescriptorProto>

source§

impl ProtobufValue for EnumOptions

§

type RuntimeType = RuntimeTypeMessage<EnumOptions>

source§

impl ProtobufValue for EnumValueDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<EnumValueDescriptorProto>

source§

impl ProtobufValue for EnumValueOptions

§

type RuntimeType = RuntimeTypeMessage<EnumValueOptions>

source§

impl ProtobufValue for ExtensionRangeOptions

§

type RuntimeType = RuntimeTypeMessage<ExtensionRangeOptions>

source§

impl ProtobufValue for FieldDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<FieldDescriptorProto>

source§

impl ProtobufValue for FieldOptions

§

type RuntimeType = RuntimeTypeMessage<FieldOptions>

source§

impl ProtobufValue for FileDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<FileDescriptorProto>

source§

impl ProtobufValue for FileDescriptorSet

§

type RuntimeType = RuntimeTypeMessage<FileDescriptorSet>

source§

impl ProtobufValue for FileOptions

§

type RuntimeType = RuntimeTypeMessage<FileOptions>

source§

impl ProtobufValue for GeneratedCodeInfo

§

type RuntimeType = RuntimeTypeMessage<GeneratedCodeInfo>

source§

impl ProtobufValue for MessageOptions

§

type RuntimeType = RuntimeTypeMessage<MessageOptions>

source§

impl ProtobufValue for MethodDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<MethodDescriptorProto>

source§

impl ProtobufValue for MethodOptions

§

type RuntimeType = RuntimeTypeMessage<MethodOptions>

source§

impl ProtobufValue for OneofDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<OneofDescriptorProto>

source§

impl ProtobufValue for OneofOptions

§

type RuntimeType = RuntimeTypeMessage<OneofOptions>

source§

impl ProtobufValue for ServiceDescriptorProto

§

type RuntimeType = RuntimeTypeMessage<ServiceDescriptorProto>

source§

impl ProtobufValue for ServiceOptions

§

type RuntimeType = RuntimeTypeMessage<ServiceOptions>

source§

impl ProtobufValue for SourceCodeInfo

§

type RuntimeType = RuntimeTypeMessage<SourceCodeInfo>

source§

impl ProtobufValue for UninterpretedOption

§

type RuntimeType = RuntimeTypeMessage<UninterpretedOption>

source§

impl ProtobufValue for NamePart

§

type RuntimeType = RuntimeTypeMessage<NamePart>

source§

impl ProtobufValue for File

§

type RuntimeType = RuntimeTypeMessage<File>

source§

impl ProtobufValue for CodeGeneratorRequest

§

type RuntimeType = RuntimeTypeMessage<CodeGeneratorRequest>

source§

impl ProtobufValue for CodeGeneratorResponse

§

type RuntimeType = RuntimeTypeMessage<CodeGeneratorResponse>

source§

impl ProtobufValue for Version

§

type RuntimeType = RuntimeTypeMessage<Version>

source§

impl ProtobufValue for Chars

§

type RuntimeType = RuntimeTypeTokioChars

source§

impl ProtobufValue for Any

§

type RuntimeType = RuntimeTypeMessage<Any>

source§

impl ProtobufValue for Api

§

type RuntimeType = RuntimeTypeMessage<Api>

source§

impl ProtobufValue for Method

§

type RuntimeType = RuntimeTypeMessage<Method>

source§

impl ProtobufValue for Mixin

§

type RuntimeType = RuntimeTypeMessage<Mixin>

source§

impl ProtobufValue for Duration

§

type RuntimeType = RuntimeTypeMessage<Duration>

source§

impl ProtobufValue for Empty

§

type RuntimeType = RuntimeTypeMessage<Empty>

source§

impl ProtobufValue for FieldMask

§

type RuntimeType = RuntimeTypeMessage<FieldMask>

source§

impl ProtobufValue for SourceContext

§

type RuntimeType = RuntimeTypeMessage<SourceContext>

source§

impl ProtobufValue for ListValue

§

type RuntimeType = RuntimeTypeMessage<ListValue>

source§

impl ProtobufValue for Struct

§

type RuntimeType = RuntimeTypeMessage<Struct>

source§

impl ProtobufValue for Value

§

type RuntimeType = RuntimeTypeMessage<Value>

source§

impl ProtobufValue for Timestamp

§

type RuntimeType = RuntimeTypeMessage<Timestamp>

source§

impl ProtobufValue for Enum

§

type RuntimeType = RuntimeTypeMessage<Enum>

source§

impl ProtobufValue for EnumValue

§

type RuntimeType = RuntimeTypeMessage<EnumValue>

source§

impl ProtobufValue for Field

§

type RuntimeType = RuntimeTypeMessage<Field>

source§

impl ProtobufValue for Option

§

type RuntimeType = RuntimeTypeMessage<Option>

source§

impl ProtobufValue for Type

§

type RuntimeType = RuntimeTypeMessage<Type>

source§

impl ProtobufValue for BoolValue

§

type RuntimeType = RuntimeTypeMessage<BoolValue>

source§

impl ProtobufValue for BytesValue

§

type RuntimeType = RuntimeTypeMessage<BytesValue>

source§

impl ProtobufValue for DoubleValue

§

type RuntimeType = RuntimeTypeMessage<DoubleValue>

source§

impl ProtobufValue for FloatValue

§

type RuntimeType = RuntimeTypeMessage<FloatValue>

source§

impl ProtobufValue for Int32Value

§

type RuntimeType = RuntimeTypeMessage<Int32Value>

source§

impl ProtobufValue for Int64Value

§

type RuntimeType = RuntimeTypeMessage<Int64Value>

source§

impl ProtobufValue for StringValue

§

type RuntimeType = RuntimeTypeMessage<StringValue>

source§

impl ProtobufValue for UInt32Value

§

type RuntimeType = RuntimeTypeMessage<UInt32Value>

source§

impl ProtobufValue for UInt64Value

§

type RuntimeType = RuntimeTypeMessage<UInt64Value>

source§

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

§

type RuntimeType = RuntimeTypeEnumOrUnknown<E>