[][src]Trait protobuf::reflect::ProtobufValue

pub trait ProtobufValue: Any + 'static {
    fn as_ref(&self) -> ProtobufValueRef;

    fn as_any(&self) -> &dyn Any { ... }
fn is_non_zero(&self) -> bool { ... }
fn as_ref_copy(&self) -> ProtobufValueRef<'static> { ... } }

Type implemented by all protobuf elementary types (ints, floats, bool, string, bytes, enums, messages).

Required methods

fn as_ref(&self) -> ProtobufValueRef

As ref

Loading content...

Provided methods

fn as_any(&self) -> &dyn Any

Convert to Any

fn is_non_zero(&self) -> bool

Is value non-zero?

fn as_ref_copy(&self) -> ProtobufValueRef<'static>

Return ProtobufValueRef if self is Copy.

Panics

if Self is not Copy.

Loading content...

Implementations on Foreign Types

impl ProtobufValue for u32[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for u64[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for i32[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for i64[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for f32[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for f64[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for bool[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for String[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for str[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Vec<u8>[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

Loading content...

Implementors

impl ProtobufValue for FieldDescriptorProto_Label[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FieldDescriptorProto_Type[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FieldOptions_CType[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FieldOptions_JSType[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FileOptions_OptimizeMode[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Field_Cardinality[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Field_Kind[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for NullValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Syntax[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for DescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for DescriptorProto_ExtensionRange[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for DescriptorProto_ReservedRange[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for EnumDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for EnumOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for EnumValueDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for EnumValueOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FieldDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FieldOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FileDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FileDescriptorSet[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FileOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for GeneratedCodeInfo[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for GeneratedCodeInfo_Annotation[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for MessageOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for MethodDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for MethodOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for OneofDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for OneofOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for ServiceDescriptorProto[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for ServiceOptions[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for SourceCodeInfo[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for SourceCodeInfo_Location[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for UninterpretedOption[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for UninterpretedOption_NamePart[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for CodeGeneratorRequest[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for CodeGeneratorResponse[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for CodeGeneratorResponse_File[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Any[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Api[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for BoolValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for BytesValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for DoubleValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Duration[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Empty[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Enum[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for EnumValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Field[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FieldMask[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for FloatValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Int32Value[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Int64Value[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for ListValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Method[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Mixin[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Option[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for SourceContext[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for StringValue[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Struct[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Timestamp[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Type[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for UInt32Value[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for UInt64Value[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

impl ProtobufValue for Value[src]

fn as_any(&self) -> &dyn Any[src]

fn is_non_zero(&self) -> bool[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

Loading content...