provider-models 0.1.0

A protobuf-compatible Provider model
Documentation
use prost::Message;
use prost_types::Timestamp;

#[derive(Clone, PartialEq, Message)]
pub struct Provider {
    /// id
    #[prost(uint64, tag = "1")]
    pub id: u64,
    /// creator
    #[prost(string, tag = "2")]
    pub creator: String,
    /// ip
    #[prost(string, tag = "3")]
    pub ip: String,
    /// port
    #[prost(uint32, tag = "4")]
    pub port: u32,
    /// country code
    #[prost(string, tag = "5")]
    pub country_code: String,
    /// environment type
    #[prost(string, tag = "6")]
    pub environment_type: String,
    /// availability
    #[prost(string, tag = "7")]
    pub availability: String,
    /// register time
    #[prost(message, optional, tag = "8")]
    pub register_time: Option<Timestamp>,
}