diff --git a/src/v1.rs b/src/v1.rs index b80f531..f1e820c 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -14,7 +14,17 @@ tonic::include_proto!("greptime.v1"); +use crate::v1::value::ValueData; + pub const GREPTIME_GRPC_DESC: &[u8] = tonic::include_file_descriptor_set!("greptime_grpc_desc"); pub mod meta; pub mod region; + +impl From for Value { + fn from(value: ValueData) -> Self { + Value { + value_data: Some(value), + } + } +}