pub type Stack = Resource<StackConfig, StackInfo>;
Aliased Type§
struct Stack {
pub id: String,
pub name: String,
pub description: String,
pub updated_at: i64,
pub tags: Vec<String>,
pub info: StackInfo,
pub config: StackConfig,
pub base_permission: PermissionLevel,
}
Fields§
§id: String
The Mongo ID of the resource.
This field is de/serialized from/to JSON as
{ "_id": { "$oid": "..." }, ...(rest of serialized Resource<T>) }
name: String
The resource name. This is guaranteed unique among others of the same resource type.
description: String
A description for the resource
updated_at: i64
When description last updated
Tag Ids
info: StackInfo
Resource-specific information (not user configurable).
config: StackConfig
Resource-specific configuration.
base_permission: PermissionLevel
Set a base permission level that all users will have on the resource.
Implementations§
Source§impl Stack
impl Stack
Sourcepub fn project_name(&self, fresh: bool) -> String
pub fn project_name(&self, fresh: bool) -> String
If fresh is passed, it will bypass the deployed project name. and get the most up to date one from just project_name field falling back to stack name.
pub fn file_paths(&self) -> &[String]
Trait Implementations
Source§impl<'de, Config, Info> Deserialize<'de> for Resource<Config, Info>
impl<'de, Config, Info> Deserialize<'de> for Resource<Config, Info>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more