pub struct ResourceDef {
pub name: String,
pub kind: ResourceKind,
pub provider: Option<String>,
pub properties: HashMap<String, String>,
}Expand description
An infrastructure resource declaration.
bucket avatars {
provider s3
region "ap-southeast-1"
}Fields§
§name: StringResource name (e.g. "avatars").
kind: ResourceKindKind of resource.
provider: Option<String>Cloud provider (e.g. "s3", "gcs").
properties: HashMap<String, String>Arbitrary key-value properties.
Trait Implementations§
Source§impl Clone for ResourceDef
impl Clone for ResourceDef
Source§fn clone(&self) -> ResourceDef
fn clone(&self) -> ResourceDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResourceDef
impl RefUnwindSafe for ResourceDef
impl Send for ResourceDef
impl Sync for ResourceDef
impl Unpin for ResourceDef
impl UnsafeUnpin for ResourceDef
impl UnwindSafe for ResourceDef
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
Mutably borrows from an owned value. Read more