pub struct DedicatedCapacitySource {
pub capacity_type: String,
pub compartment_id: Option<String>,
}Expand description
A capacity source of bare metal hosts that is dedicated to a user.
Fields§
§capacity_type: String§compartment_id: Option<String>The OCID of the compartment of this capacity source.
Implementations§
Source§impl DedicatedCapacitySource
impl DedicatedCapacitySource
Sourcepub fn new(required: DedicatedCapacitySourceRequired) -> Self
pub fn new(required: DedicatedCapacitySourceRequired) -> Self
Create a new DedicatedCapacitySource with required fields
Sourcepub fn set_compartment_id(self, value: Option<String>) -> Self
pub fn set_compartment_id(self, value: Option<String>) -> Self
Set compartment_id
Sourcepub fn set_capacity_type(self, value: String) -> Self
pub fn set_capacity_type(self, value: String) -> Self
Set capacity_type
Sourcepub fn with_compartment_id(self, value: impl Into<String>) -> Self
pub fn with_compartment_id(self, value: impl Into<String>) -> Self
Set compartment_id (unwraps Option)
Trait Implementations§
Source§impl Clone for DedicatedCapacitySource
impl Clone for DedicatedCapacitySource
Source§fn clone(&self) -> DedicatedCapacitySource
fn clone(&self) -> DedicatedCapacitySource
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 DedicatedCapacitySource
impl Debug for DedicatedCapacitySource
Source§impl<'de> Deserialize<'de> for DedicatedCapacitySource
impl<'de> Deserialize<'de> for DedicatedCapacitySource
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
Auto Trait Implementations§
impl Freeze for DedicatedCapacitySource
impl RefUnwindSafe for DedicatedCapacitySource
impl Send for DedicatedCapacitySource
impl Sync for DedicatedCapacitySource
impl Unpin for DedicatedCapacitySource
impl UnsafeUnpin for DedicatedCapacitySource
impl UnwindSafe for DedicatedCapacitySource
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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