feat: from valuedata for value (#82)

This commit is contained in:
JeremyHi
2023-08-21 11:20:56 +08:00
committed by GitHub
parent c30a2607be
commit 3489b47421
+10
View File
@@ -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<ValueData> for Value {
fn from(value: ValueData) -> Self {
Value {
value_data: Some(value),
}
}
}