pub struct Build {
pub id: String,
pub links: Vec<ResourceRef>,
pub permissions: String,
pub environment: HashMap<String, String>,
pub compute_type: ComputeType,
}Expand description
Represents a build resource that executes bash scripts to build code. Builds are designed to be stateless and can be triggered on-demand to compile, test, or package application code.
Fields§
§id: StringIdentifier for the build resource. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
links: Vec<ResourceRef>List of resource references this build depends on.
permissions: StringPermission profile name that defines the permissions granted to this build. This references a profile defined in the stack’s permission definitions.
environment: HashMap<String, String>Key-value pairs to set as environment variables for the build.
compute_type: ComputeTypeAmount of compute resources allocated to the build.
Implementations§
Source§impl Build
impl Build
Sourcepub fn new(id: String) -> BuildBuilder
pub fn new(id: String) -> BuildBuilder
Create an instance of Build using the builder syntax
Source§impl Build
impl Build
Sourcepub const RESOURCE_TYPE: ResourceType
pub const RESOURCE_TYPE: ResourceType
The resource type identifier for Builds
Sourcepub fn get_permissions(&self) -> &str
pub fn get_permissions(&self) -> &str
Returns the permission profile name for this build.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Build
impl<'de> Deserialize<'de> for Build
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>,
Source§impl ResourceDefinition for Build
impl ResourceDefinition for Build
Source§fn resource_type() -> ResourceType
fn resource_type() -> ResourceType
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Source§fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
impl Eq for Build
impl StructuralPartialEq for Build
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnsafeUnpin for Build
impl UnwindSafe for Build
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.