Skip to main content

GrpcReprScalar

Trait GrpcReprScalar 

Source
pub trait GrpcReprScalar: GrpcRepr { }
Expand description

Marker for “scalar” types — anything that can sit inside a Vec<>, Option<>, or as the value type of a HashMap<String, V>.

Maps and lists are deliberately NOT scalars: proto3 disallows nesting repeated repeated and map<K, map<...>>.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GrpcReprScalar for String

Source§

impl GrpcReprScalar for bool

Source§

impl GrpcReprScalar for f32

Source§

impl GrpcReprScalar for f64

Source§

impl GrpcReprScalar for i32

Source§

impl GrpcReprScalar for i64

Source§

impl GrpcReprScalar for u32

Source§

impl GrpcReprScalar for u64

Implementors§