Trait mesh::payload::protofile::DescribeMessage

source ·
pub trait DescribeMessage<T> {
    const DESCRIPTION: MessageDescription<'static>;
}
Expand description

A trait for a self-describing protobuf message.

This can be derived for T by deriving Protobuf and adding the attribute #[mesh(package = "my.package.name")].

Required Associated Constants§

source

const DESCRIPTION: MessageDescription<'static>

The message description.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DescribeMessage<()> for TableEncoder

source§

impl<E, T> DescribeMessage<T> for ArcEncoding<E>
where E: DescribeMessage<T>,

source§

const DESCRIPTION: MessageDescription<'static> = E::DESCRIPTION

source§

impl<E, T> DescribeMessage<T> for BoxEncoding<E>
where E: DescribeMessage<T>,

source§

const DESCRIPTION: MessageDescription<'static> = E::DESCRIPTION

source§

impl<E, T> DescribeMessage<T> for MessageEncoding<E>
where E: DescribeMessage<T>,

source§

const DESCRIPTION: MessageDescription<'static> = E::DESCRIPTION

source§

impl<T> DescribeMessage<T> for ImpossibleField

source§

impl<T> DescribeMessage<T> for OneofEncoder
where T: DescribeOneof,

source§

const DESCRIPTION: MessageDescription<'static> = T::DESCRIPTION

source§

impl<T> DescribeMessage<T> for TableEncoder
where T: DescribeTable,

source§

const DESCRIPTION: MessageDescription<'static> = T::DESCRIPTION

source§

impl<T, E> DescribeMessage<T> for TransparentEncoding<E>

source§

const DESCRIPTION: MessageDescription<'static> = E::DESCRIPTION