[][src]Trait protobuf::core::Message

pub trait Message: Debug + Clear + Any + Send + Sync {
    fn descriptor(&self) -> &'static MessageDescriptor;
fn is_initialized(&self) -> bool;
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>;
fn write_to_with_cached_sizes(
        &self,
        os: &mut CodedOutputStream
    ) -> ProtobufResult<()>;
fn compute_size(&self) -> u32;
fn get_cached_size(&self) -> u32;
fn get_unknown_fields<'s>(&'s self) -> &'s UnknownFields;
fn mut_unknown_fields<'s>(&'s mut self) -> &'s mut UnknownFields;
fn as_any(&self) -> &dyn Any; fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()> { ... }
fn write_length_delimited_to(
        &self,
        os: &mut CodedOutputStream
    ) -> ProtobufResult<()> { ... }
fn write_length_delimited_to_vec(
        &self,
        vec: &mut Vec<u8>
    ) -> ProtobufResult<()> { ... }
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()> { ... }
fn check_initialized(&self) -> ProtobufResult<()> { ... }
fn write_to_writer(&self, w: &mut dyn Write) -> ProtobufResult<()> { ... }
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()> { ... }
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>> { ... }
fn write_length_delimited_to_writer(
        &self,
        w: &mut dyn Write
    ) -> ProtobufResult<()> { ... }
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>> { ... }
fn type_id(&self) -> TypeId { ... }
fn as_any_mut(&mut self) -> &mut dyn Any { ... }
fn into_any(self: Box<Self>) -> Box<dyn Any> { ... } }

Required methods

fn descriptor(&self) -> &'static MessageDescriptor

fn is_initialized(&self) -> bool

fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>

fn write_to_with_cached_sizes(
    &self,
    os: &mut CodedOutputStream
) -> ProtobufResult<()>

fn compute_size(&self) -> u32

fn get_cached_size(&self) -> u32

fn get_unknown_fields<'s>(&'s self) -> &'s UnknownFields

fn mut_unknown_fields<'s>(&'s mut self) -> &'s mut UnknownFields

fn as_any(&self) -> &dyn Any

Provided methods

fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> ProtobufResult<()>

fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>

fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>

fn check_initialized(&self) -> ProtobufResult<()>

fn write_to_writer(&self, w: &mut dyn Write) -> ProtobufResult<()>

fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>

fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> ProtobufResult<()>

fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>

fn type_id(&self) -> TypeId

fn as_any_mut(&mut self) -> &mut dyn Any

fn into_any(self: Box<Self>) -> Box<dyn Any>

Implementors

impl Message for DescriptorProto[src][]

impl Message for DescriptorProto_ExtensionRange[src][]

impl Message for DescriptorProto_ReservedRange[src][]

impl Message for EnumDescriptorProto[src][]

impl Message for EnumOptions[src][]

impl Message for EnumValueDescriptorProto[src][]

impl Message for EnumValueOptions[src][]

impl Message for FieldDescriptorProto[src][]

impl Message for FieldOptions[src][]

impl Message for FileDescriptorProto[src][]

impl Message for FileDescriptorSet[src][]

impl Message for FileOptions[src][]

impl Message for GeneratedCodeInfo[src][]

impl Message for GeneratedCodeInfo_Annotation[src][]

impl Message for MessageOptions[src][]

impl Message for MethodDescriptorProto[src][]

impl Message for MethodOptions[src][]

impl Message for OneofDescriptorProto[src][]

impl Message for OneofOptions[src][]

impl Message for ServiceDescriptorProto[src][]

impl Message for ServiceOptions[src][]

impl Message for SourceCodeInfo[src][]

impl Message for SourceCodeInfo_Location[src][]

impl Message for UninterpretedOption[src][]

impl Message for UninterpretedOption_NamePart[src][]

impl Message for CodeGeneratorRequest[src][]

impl Message for CodeGeneratorResponse[src][]

impl Message for CodeGeneratorResponse_File[src][]

impl Message for Any[src][]

impl Message for Api[src][]

impl Message for BoolValue[src][]

impl Message for BytesValue[src][]

impl Message for DoubleValue[src][]

impl Message for Duration[src][]

impl Message for Empty[src][]

impl Message for Enum[src][]

impl Message for EnumValue[src][]

impl Message for Field[src][]

impl Message for FieldMask[src][]

impl Message for FloatValue[src][]

impl Message for Int32Value[src][]

impl Message for Int64Value[src][]

impl Message for ListValue[src][]

impl Message for Method[src][]

impl Message for Mixin[src][]

impl Message for Option[src][]

impl Message for SourceContext[src][]

impl Message for StringValue[src][]

impl Message for Struct[src][]

impl Message for Timestamp[src][]

impl Message for Type[src][]

impl Message for UInt32Value[src][]

impl Message for UInt64Value[src][]

impl Message for Value[src][]

impl Message for ReadRowsRequest

impl Message for ReadRowsResponse

impl Message for ReadRowsResponse_CellChunk

impl Message for SampleRowKeysRequest

impl Message for SampleRowKeysResponse

impl Message for MutateRowRequest

impl Message for MutateRowResponse

impl Message for MutateRowsRequest

impl Message for MutateRowsRequest_Entry

impl Message for MutateRowsResponse

impl Message for MutateRowsResponse_Entry

impl Message for CheckAndMutateRowRequest

impl Message for CheckAndMutateRowResponse

impl Message for ReadModifyWriteRowRequest

impl Message for ReadModifyWriteRowResponse

impl Message for Row

impl Message for Family

impl Message for Column

impl Message for Cell

impl Message for RowRange

impl Message for RowSet

impl Message for ColumnRange

impl Message for TimestampRange

impl Message for ValueRange

impl Message for RowFilter

impl Message for RowFilter_Chain

impl Message for RowFilter_Interleave

impl Message for RowFilter_Condition

impl Message for Mutation

impl Message for Mutation_SetCell

impl Message for Mutation_DeleteFromColumn

impl Message for Mutation_DeleteFromFamily

impl Message for Mutation_DeleteFromRow

impl Message for ReadModifyWriteRule

impl Message for Status

impl Message for Any

impl Message for DoubleValue

impl Message for FloatValue

impl Message for Int64Value

impl Message for UInt64Value

impl Message for Int32Value

impl Message for UInt32Value

impl Message for BoolValue

impl Message for StringValue

impl Message for BytesValue