Type Alias Stack

Source
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

§tags: Vec<String>

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

Source

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.

Source

pub fn file_paths(&self) -> &[String]

Trait Implementations

Source§

impl<Config: Clone + Default, Info: Clone + Default> Clone for Resource<Config, Info>

Source§

fn clone(&self) -> Resource<Config, Info>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Config: Debug + Default, Info: Debug + Default> Debug for Resource<Config, Info>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, Config, Info> Deserialize<'de> for Resource<Config, Info>
where Config: Deserialize<'de> + Default + Default, Info: Deserialize<'de> + Default + Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<Config, Info> Serialize for Resource<Config, Info>
where Config: Serialize + Default, Info: Serialize + Default,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more