Trait protobuf::reflect::ProtobufValue [−][src]
pub trait ProtobufValue: Any + 'static { fn as_ref(&self) -> ReflectValueRef<'_>; fn as_any(&self) -> &dyn Any { ... } fn is_non_zero(&self) -> bool { ... } fn as_ref_copy(&self) -> ReflectValueRef<'static> { ... } }
Type implemented by all protobuf elementary types (ints, floats, bool, string, bytes, enums, messages).
Required methods
fn as_ref(&self) -> ReflectValueRef<'_>
[src]
As ref
Provided methods
fn as_any(&self) -> &dyn Any
[src]
Convert to Any
fn is_non_zero(&self) -> bool
[src]
Is value non-zero?
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]
Implementations on Foreign Types
impl ProtobufValue for u32
[src]
impl ProtobufValue for u32
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for u64
[src]
impl ProtobufValue for u64
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for i32
[src]
impl ProtobufValue for i32
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for i64
[src]
impl ProtobufValue for i64
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for f32
[src]
impl ProtobufValue for f32
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for f64
[src]
impl ProtobufValue for f64
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for bool
[src]
impl ProtobufValue for bool
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for String
[src]
impl ProtobufValue for String
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for str
[src]
impl ProtobufValue for str
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Vec<u8>
[src]
impl ProtobufValue for Vec<u8>
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Bytes
[src]
impl ProtobufValue for Bytes
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
Implementors
impl ProtobufValue for FieldDescriptorProto_Label
[src]
impl ProtobufValue for FieldDescriptorProto_Label
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FieldDescriptorProto_Type
[src]
impl ProtobufValue for FieldDescriptorProto_Type
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FieldOptions_CType
[src]
impl ProtobufValue for FieldOptions_CType
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FieldOptions_JSType
[src]
impl ProtobufValue for FieldOptions_JSType
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FileOptions_OptimizeMode
[src]
impl ProtobufValue for FileOptions_OptimizeMode
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for MethodOptions_IdempotencyLevel
[src]
impl ProtobufValue for MethodOptions_IdempotencyLevel
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for CodeGeneratorResponse_Feature
[src]
impl ProtobufValue for CodeGeneratorResponse_Feature
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Field_Cardinality
[src]
impl ProtobufValue for Field_Cardinality
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Field_Kind
[src]
impl ProtobufValue for Field_Kind
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for NullValue
[src]
impl ProtobufValue for NullValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Syntax
[src]
impl ProtobufValue for Syntax
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for DescriptorProto
[src]
impl ProtobufValue for DescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for DescriptorProto_ExtensionRange
[src]
impl ProtobufValue for DescriptorProto_ExtensionRange
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for DescriptorProto_ReservedRange
[src]
impl ProtobufValue for DescriptorProto_ReservedRange
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for EnumDescriptorProto
[src]
impl ProtobufValue for EnumDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for EnumDescriptorProto_EnumReservedRange
[src]
impl ProtobufValue for EnumDescriptorProto_EnumReservedRange
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for EnumOptions
[src]
impl ProtobufValue for EnumOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for EnumValueDescriptorProto
[src]
impl ProtobufValue for EnumValueDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for EnumValueOptions
[src]
impl ProtobufValue for EnumValueOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for ExtensionRangeOptions
[src]
impl ProtobufValue for ExtensionRangeOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FieldDescriptorProto
[src]
impl ProtobufValue for FieldDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FieldOptions
[src]
impl ProtobufValue for FieldOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FileDescriptorProto
[src]
impl ProtobufValue for FileDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FileDescriptorSet
[src]
impl ProtobufValue for FileDescriptorSet
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FileOptions
[src]
impl ProtobufValue for FileOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for GeneratedCodeInfo
[src]
impl ProtobufValue for GeneratedCodeInfo
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for GeneratedCodeInfo_Annotation
[src]
impl ProtobufValue for GeneratedCodeInfo_Annotation
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for MessageOptions
[src]
impl ProtobufValue for MessageOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for MethodDescriptorProto
[src]
impl ProtobufValue for MethodDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for MethodOptions
[src]
impl ProtobufValue for MethodOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for OneofDescriptorProto
[src]
impl ProtobufValue for OneofDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for OneofOptions
[src]
impl ProtobufValue for OneofOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for ServiceDescriptorProto
[src]
impl ProtobufValue for ServiceDescriptorProto
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for ServiceOptions
[src]
impl ProtobufValue for ServiceOptions
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for SourceCodeInfo
[src]
impl ProtobufValue for SourceCodeInfo
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for SourceCodeInfo_Location
[src]
impl ProtobufValue for SourceCodeInfo_Location
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for UninterpretedOption
[src]
impl ProtobufValue for UninterpretedOption
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for UninterpretedOption_NamePart
[src]
impl ProtobufValue for UninterpretedOption_NamePart
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for CodeGeneratorRequest
[src]
impl ProtobufValue for CodeGeneratorRequest
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for CodeGeneratorResponse
[src]
impl ProtobufValue for CodeGeneratorResponse
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for CodeGeneratorResponse_File
[src]
impl ProtobufValue for CodeGeneratorResponse_File
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Version
[src]
impl ProtobufValue for Version
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Chars
[src]
impl ProtobufValue for Chars
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Any
[src]
impl ProtobufValue for Any
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Api
[src]
impl ProtobufValue for Api
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for BoolValue
[src]
impl ProtobufValue for BoolValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for BytesValue
[src]
impl ProtobufValue for BytesValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for DoubleValue
[src]
impl ProtobufValue for DoubleValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Duration
[src]
impl ProtobufValue for Duration
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Empty
[src]
impl ProtobufValue for Empty
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Enum
[src]
impl ProtobufValue for Enum
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for EnumValue
[src]
impl ProtobufValue for EnumValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Field
[src]
impl ProtobufValue for Field
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FieldMask
[src]
impl ProtobufValue for FieldMask
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for FloatValue
[src]
impl ProtobufValue for FloatValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Int32Value
[src]
impl ProtobufValue for Int32Value
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Int64Value
[src]
impl ProtobufValue for Int64Value
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for ListValue
[src]
impl ProtobufValue for ListValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Method
[src]
impl ProtobufValue for Method
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Mixin
[src]
impl ProtobufValue for Mixin
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Option
[src]
impl ProtobufValue for Option
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for SourceContext
[src]
impl ProtobufValue for SourceContext
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for StringValue
[src]
impl ProtobufValue for StringValue
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Struct
[src]
impl ProtobufValue for Struct
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Timestamp
[src]
impl ProtobufValue for Timestamp
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Type
[src]
impl ProtobufValue for Type
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for UInt32Value
[src]
impl ProtobufValue for UInt32Value
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for UInt64Value
[src]
impl ProtobufValue for UInt64Value
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
impl ProtobufValue for Value
[src]
impl ProtobufValue for Value
[src]