#[non_exhaustive]pub struct CalendarModeRecommendation {
pub recommendations_per_spec: HashMap<String, FutureResourcesRecommendation>,
/* private fields */
}Available on crate feature
advice only.Expand description
A single recommendation to create requested resources. Contains detailed recommendations for every future resources specification specified in CalendarModeAdviceRequest.
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.recommendations_per_spec: HashMap<String, FutureResourcesRecommendation>Recommendations for every future resource specification passed in CalendarModeAdviceRequest. Keys of the map correspond to keys specified in the request.
Implementations§
Source§impl CalendarModeRecommendation
impl CalendarModeRecommendation
pub fn new() -> Self
Sourcepub fn set_recommendations_per_spec<T, K, V>(self, v: T) -> Self
pub fn set_recommendations_per_spec<T, K, V>(self, v: T) -> Self
Sets the value of recommendations_per_spec.
§Example
ⓘ
use google_cloud_compute_v1::model::FutureResourcesRecommendation;
let x = CalendarModeRecommendation::new().set_recommendations_per_spec([
("key0", FutureResourcesRecommendation::default()/* use setters */),
("key1", FutureResourcesRecommendation::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for CalendarModeRecommendation
impl Clone for CalendarModeRecommendation
Source§fn clone(&self) -> CalendarModeRecommendation
fn clone(&self) -> CalendarModeRecommendation
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 CalendarModeRecommendation
impl Debug for CalendarModeRecommendation
Source§impl Default for CalendarModeRecommendation
impl Default for CalendarModeRecommendation
Source§fn default() -> CalendarModeRecommendation
fn default() -> CalendarModeRecommendation
Returns the “default value” for a type. Read more
Source§impl Message for CalendarModeRecommendation
impl Message for CalendarModeRecommendation
impl StructuralPartialEq for CalendarModeRecommendation
Auto Trait Implementations§
impl Freeze for CalendarModeRecommendation
impl RefUnwindSafe for CalendarModeRecommendation
impl Send for CalendarModeRecommendation
impl Sync for CalendarModeRecommendation
impl Unpin for CalendarModeRecommendation
impl UnwindSafe for CalendarModeRecommendation
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