#[non_exhaustive]pub struct ReservationsResizeRequest {
pub specific_sku_count: Option<i64>,
/* private fields */
}Available on crate feature
reservations only.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.specific_sku_count: Option<i64>Number of allocated resources can be resized with minimum = 1 and maximum = 1000.
Implementations§
Source§impl ReservationsResizeRequest
impl ReservationsResizeRequest
pub fn new() -> Self
Sourcepub fn set_specific_sku_count<T>(self, v: T) -> Self
pub fn set_specific_sku_count<T>(self, v: T) -> Self
Sets the value of specific_sku_count.
§Example
ⓘ
let x = ReservationsResizeRequest::new().set_specific_sku_count(42);Sourcepub fn set_or_clear_specific_sku_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_specific_sku_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of specific_sku_count.
§Example
ⓘ
let x = ReservationsResizeRequest::new().set_or_clear_specific_sku_count(Some(42));
let x = ReservationsResizeRequest::new().set_or_clear_specific_sku_count(None::<i32>);Trait Implementations§
Source§impl Clone for ReservationsResizeRequest
impl Clone for ReservationsResizeRequest
Source§fn clone(&self) -> ReservationsResizeRequest
fn clone(&self) -> ReservationsResizeRequest
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 ReservationsResizeRequest
impl Debug for ReservationsResizeRequest
Source§impl Default for ReservationsResizeRequest
impl Default for ReservationsResizeRequest
Source§fn default() -> ReservationsResizeRequest
fn default() -> ReservationsResizeRequest
Returns the “default value” for a type. Read more
Source§impl Message for ReservationsResizeRequest
impl Message for ReservationsResizeRequest
impl StructuralPartialEq for ReservationsResizeRequest
Auto Trait Implementations§
impl Freeze for ReservationsResizeRequest
impl RefUnwindSafe for ReservationsResizeRequest
impl Send for ReservationsResizeRequest
impl Sync for ReservationsResizeRequest
impl Unpin for ReservationsResizeRequest
impl UnwindSafe for ReservationsResizeRequest
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