#[non_exhaustive]pub struct ResourceSpec {
pub location_type: LocationType,
/* private fields */
}Expand description
Settings for resources attached as assets within a zone.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.location_type: LocationTypeRequired. Immutable. The location type of the resources that are allowed to be attached to the assets within this zone.
Implementations§
Source§impl ResourceSpec
impl ResourceSpec
pub fn new() -> Self
Sourcepub fn set_location_type<T: Into<LocationType>>(self, v: T) -> Self
pub fn set_location_type<T: Into<LocationType>>(self, v: T) -> Self
Sets the value of location_type.
Trait Implementations§
Source§impl Clone for ResourceSpec
impl Clone for ResourceSpec
Source§fn clone(&self) -> ResourceSpec
fn clone(&self) -> ResourceSpec
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 moreSource§impl Debug for ResourceSpec
impl Debug for ResourceSpec
Source§impl Default for ResourceSpec
impl Default for ResourceSpec
Source§fn default() -> ResourceSpec
fn default() -> ResourceSpec
Returns the “default value” for a type. Read more
Source§impl Message for ResourceSpec
impl Message for ResourceSpec
Source§impl PartialEq for ResourceSpec
impl PartialEq for ResourceSpec
impl StructuralPartialEq for ResourceSpec
Auto Trait Implementations§
impl Freeze for ResourceSpec
impl RefUnwindSafe for ResourceSpec
impl Send for ResourceSpec
impl Sync for ResourceSpec
impl Unpin for ResourceSpec
impl UnwindSafe for ResourceSpec
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