Trait mesh::payload::protofile::DescribeField

source ·
pub trait DescribeField<T> {
    const FIELD_TYPE: FieldType<'static>;
    const PACKED_TYPE: Option<&'static str> = None;
}
Expand description

A trait for a self-describing protobuf message field.

Required Associated Constants§

source

const FIELD_TYPE: FieldType<'static>

The type of the field.

Provided Associated Constants§

source

const PACKED_TYPE: Option<&'static str> = None

The type name of the field in a packed context.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DescribeField<Cow<'_, str>> for OwningCowField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<bool> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<f32> for Fixed32Field

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<f64> for Fixed64Field

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i8> for SignedVarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i8> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i16> for SignedVarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i16> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i32> for Fixed32Field

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i32> for SignedVarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i32> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i64> for Fixed64Field

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i64> for SignedVarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<i64> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<isize> for SignedVarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<isize> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u8> for ByteField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

const PACKED_TYPE: Option<&'static str> = _

source§

impl DescribeField<u8> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u16> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u32> for Fixed32Field

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u32> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u64> for Fixed64Field

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u64> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<u128> for U128LittleEndianField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<()> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<usize> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<ProtobufMessage> for MessageEncoding<ProtobufMessageEncoding>

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<i8>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<i16>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<i32>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<i64>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<isize>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<u8>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<u16>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<u32>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<u64>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<NonZero<usize>> for VarintField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl DescribeField<Duration> for DurationEncoding

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<'a> DescribeField<Cow<'a, str>> for BorrowedCowField

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0> DescribeField<(E0,)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0, E1> DescribeField<(E0, E1)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0, E1, E2> DescribeField<(E0, E1, E2)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0, E1, E2, E3> DescribeField<(E0, E1, E2, E3)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0, E1, E2, E3, E4> DescribeField<(E0, E1, E2, E3, E4)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0, E1, E2, E3, E4, E5> DescribeField<(E0, E1, E2, E3, E4, E5)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<E0, E1, E2, E3, E4, E5, E6> DescribeField<(E0, E1, E2, E3, E4, E5, E6)> for TableEncoder

source§

const FIELD_TYPE: FieldType<'static> = _

source§

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

source§

const FIELD_TYPE: FieldType<'static> = E::FIELD_TYPE

source§

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

source§

const FIELD_TYPE: FieldType<'static> = E::FIELD_TYPE

source§

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

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<T> DescribeField<T> for BytesField
where T: AsRef<[u8]>,

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<T> DescribeField<T> for StringField
where T: AsRef<str>,

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<T> DescribeField<T> for ZeroCopyEncoding

source§

const FIELD_TYPE: FieldType<'static> = _

source§

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

source§

const FIELD_TYPE: FieldType<'static> = _

source§

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

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<T, E> DescribeField<Option<T>> for OptionField<E>
where E: DescribeField<T>,

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<T, E> DescribeField<Vec<T>> for VecField<E>
where E: DescribeField<T>,

source§

const FIELD_TYPE: FieldType<'static> = _

source§

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

source§

const FIELD_TYPE: FieldType<'static> = E::FIELD_TYPE

source§

const PACKED_TYPE: Option<&'static str> = E::PACKED_TYPE

source§

impl<T, E, const N: usize> DescribeField<[T; N]> for ArrayField<E>
where E: DescribeField<T>,

source§

const FIELD_TYPE: FieldType<'static> = _

source§

impl<T, K, V, EK, EV> DescribeField<T> for MapField<K, V, EK, EV>
where EK: DescribeField<K>, EV: DescribeField<V>,

source§

const FIELD_TYPE: FieldType<'static> = _