Skip to content

Commit 3489b47

Browse files
authored
feat: from valuedata for value (#82)
1 parent c30a260 commit 3489b47

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/v1.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@
1414

1515
tonic::include_proto!("greptime.v1");
1616

17+
use crate::v1::value::ValueData;
18+
1719
pub const GREPTIME_GRPC_DESC: &[u8] = tonic::include_file_descriptor_set!("greptime_grpc_desc");
1820

1921
pub mod meta;
2022
pub mod region;
23+
24+
impl From<ValueData> for Value {
25+
fn from(value: ValueData) -> Self {
26+
Value {
27+
value_data: Some(value),
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)