Type Alias BytesValue

Source
pub type BytesValue = Bytes;
Expand description

Implements the google.cloud.BytesValue well-known type.

In early versions of the proto3 syntax optional primitive types were represented by well-known messages, with a single field, that contained the value. In Rust, we represent these with Option of the correct type. The aliases are introduced here to simplify the code generator and resolve any references in code or documentation.

The JSON representation for BytesValue is JSON string.

Aliased Type§

struct BytesValue { /* private fields */ }

Trait Implementations§

Source§

impl Message for BytesValue

Source§

fn typename() -> &'static str

The typename of this message.
Source§

fn to_map(&self) -> Result<Map<String, Value>, AnyError>
where Self: Serialize + Sized,

Store the value into a JSON object.
Source§

fn from_map(map: &Map<String, Value>) -> Result<Self, AnyError>
where Self: DeserializeOwned,

Extract the value from a JSON object.