nominal_api_proto/proto/
nominal.run.v1.rs1#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct Unit {
4 #[prost(string, optional, tag = "1")]
5 pub name: ::core::option::Option<::prost::alloc::string::String>,
6 #[prost(string, tag = "2")]
7 pub symbol: ::prost::alloc::string::String,
8}
9#[derive(Clone, Copy, PartialEq, ::prost::Message)]
10pub struct UtcTimestamp {
11 #[prost(int64, tag = "1")]
12 pub seconds_since_epoch: i64,
13 #[prost(int64, optional, tag = "2")]
14 pub offset_nanoseconds: ::core::option::Option<i64>,
15}
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
17#[repr(i32)]
18pub enum WeakTimestampType {
19 Unspecified = 0,
20 Absolute = 1,
21 Relative = 2,
22 Pending = 3,
23}
24impl WeakTimestampType {
25 pub fn as_str_name(&self) -> &'static str {
30 match self {
31 Self::Unspecified => "WEAK_TIMESTAMP_TYPE_UNSPECIFIED",
32 Self::Absolute => "ABSOLUTE",
33 Self::Relative => "RELATIVE",
34 Self::Pending => "PENDING",
35 }
36 }
37 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
39 match value {
40 "WEAK_TIMESTAMP_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
41 "ABSOLUTE" => Some(Self::Absolute),
42 "RELATIVE" => Some(Self::Relative),
43 "PENDING" => Some(Self::Pending),
44 _ => None,
45 }
46 }
47}