feat: from valuedata for value (#82)
This commit is contained in:
@@ -14,7 +14,17 @@
|
|||||||
|
|
||||||
tonic::include_proto!("greptime.v1");
|
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 const GREPTIME_GRPC_DESC: &[u8] = tonic::include_file_descriptor_set!("greptime_grpc_desc");
|
||||||
|
|
||||||
pub mod meta;
|
pub mod meta;
|
||||||
pub mod region;
|
pub mod region;
|
||||||
|
|
||||||
|
impl From<ValueData> for Value {
|
||||||
|
fn from(value: ValueData) -> Self {
|
||||||
|
Value {
|
||||||
|
value_data: Some(value),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user