Struct protofish::decode::MessageValue
source · [−]pub struct MessageValue {
pub msg_ref: MessageRef,
pub fields: Vec<FieldValue>,
pub garbage: Option<Bytes>,
}
Expand description
Message value.
Fields
msg_ref: MessageRef
Reference to the message type.
fields: Vec<FieldValue>
Mesage field values.
garbage: Option<Bytes>
Garbage data at the end of the message.
As opposed to an UnknownValue::Invalid
, the garbage data did not have a valid field
number and for that reason cannot be placed into the fields
vector.
Implementations
Encodes a message value into protobuf wire format.
Will panic if the message defined by the MessageRef
does not exist in this context.
Such panic means the MessageRef
came from a different context. The panic is not
guaranteed, as a message with an equal MessageRef
may exist in multiple contexts.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MessageValue
impl Send for MessageValue
impl Sync for MessageValue
impl Unpin for MessageValue
impl UnwindSafe for MessageValue
Blanket Implementations
Mutably borrows from an owned value. Read more