Type Alias ListValue

Source
pub type ListValue = Vec<Value>;
Expand description

Protobuf (and consequently the Google Cloud APIs) use ListValue to represent a list of JSON values. We need a type that can be referenced from the generated code.

Aliased Type§

struct ListValue { /* private fields */ }

Trait Implementations§

Source§

impl Message for ListValue

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.