1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (c) 2023 MASSA LABS <info@massa.net>

use crate::MassaTime;
use massa_proto_rs::massa::model::v1 as grpc_model;

impl From<MassaTime> for grpc_model::NativeTime {
    fn from(value: MassaTime) -> Self {
        grpc_model::NativeTime {
            milliseconds: value.as_millis(),
        }
    }
}