#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AssetId {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration="AssetScope", tag="2")]
pub scope: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NdsAsset {
#[prost(message, optional, tag="1")]
pub asset_id: ::core::option::Option<AssetId>,
#[prost(map="string, string", tag="2")]
pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
#[prost(map="string, string", tag="3")]
pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
#[prost(message, optional, tag="4")]
pub limit: ::core::option::Option<super::common::Decimal>,
#[prost(int64, tag="5")]
pub created_at: i64,
#[prost(int64, tag="6")]
pub updated_at: i64,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AssetScope {
Unspecified = 0,
Player = 1,
Server = 2,
Global = 3,
}
impl AssetScope {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "ASSET_SCOPE_UNSPECIFIED",
Self::Player => "ASSET_SCOPE_PLAYER",
Self::Server => "ASSET_SCOPE_SERVER",
Self::Global => "ASSET_SCOPE_GLOBAL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ASSET_SCOPE_UNSPECIFIED" => Some(Self::Unspecified),
"ASSET_SCOPE_PLAYER" => Some(Self::Player),
"ASSET_SCOPE_SERVER" => Some(Self::Server),
"ASSET_SCOPE_GLOBAL" => Some(Self::Global),
_ => None,
}
}
}