Trait prost_reflect::ReflectMessage
source · [−]pub trait ReflectMessage: Message {
fn descriptor(&self) -> MessageDescriptor;
fn transcode_to_dynamic(&self) -> DynamicMessage
where
Self: Sized,
{ ... }
}
Expand description
Trait for message types that support reflection.
Required methods
fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
Gets a MessageDescriptor
describing the type of this message.
Provided methods
fn transcode_to_dynamic(&self) -> DynamicMessage where
Self: Sized,
fn transcode_to_dynamic(&self) -> DynamicMessage where
Self: Sized,
Converts this message into an instance of DynamicMessage
by going
through the byte representation.