#[non_exhaustive]pub struct CalendarModeAdviceResponse {
pub recommendations: Vec<CalendarModeRecommendation>,
/* private fields */
}Available on crate feature
advice only.Expand description
A response containing the recommended way of creating the specified resources in the future. It contains (will contain) multiple recommendations that can be analyzed by the customer and the best one can be picked.
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: Vec<CalendarModeRecommendation>Recommendations where, how and when to create the requested resources in order to maximize their obtainability and minimize cost.
Implementations§
Source§impl CalendarModeAdviceResponse
impl CalendarModeAdviceResponse
pub fn new() -> Self
Sourcepub fn set_recommendations<T, V>(self, v: T) -> Self
pub fn set_recommendations<T, V>(self, v: T) -> Self
Sets the value of recommendations.
§Example
ⓘ
use google_cloud_compute_v1::model::CalendarModeRecommendation;
let x = CalendarModeAdviceResponse::new()
.set_recommendations([
CalendarModeRecommendation::default()/* use setters */,
CalendarModeRecommendation::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for CalendarModeAdviceResponse
impl Clone for CalendarModeAdviceResponse
Source§fn clone(&self) -> CalendarModeAdviceResponse
fn clone(&self) -> CalendarModeAdviceResponse
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 CalendarModeAdviceResponse
impl Debug for CalendarModeAdviceResponse
Source§impl Default for CalendarModeAdviceResponse
impl Default for CalendarModeAdviceResponse
Source§fn default() -> CalendarModeAdviceResponse
fn default() -> CalendarModeAdviceResponse
Returns the “default value” for a type. Read more
Source§impl Message for CalendarModeAdviceResponse
impl Message for CalendarModeAdviceResponse
impl StructuralPartialEq for CalendarModeAdviceResponse
Auto Trait Implementations§
impl Freeze for CalendarModeAdviceResponse
impl RefUnwindSafe for CalendarModeAdviceResponse
impl Send for CalendarModeAdviceResponse
impl Sync for CalendarModeAdviceResponse
impl Unpin for CalendarModeAdviceResponse
impl UnwindSafe for CalendarModeAdviceResponse
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