#[non_exhaustive]pub struct RecommendationContent {
pub operation_groups: Vec<OperationGroup>,
pub overview: Option<Struct>,
/* private fields */
}Expand description
Contains what resources are changing and how they are changing.
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.operation_groups: Vec<OperationGroup>Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.
overview: Option<Struct>Condensed overview information about the recommendation.
Implementations§
Source§impl RecommendationContent
impl RecommendationContent
Sourcepub fn set_operation_groups<T, V>(self, v: T) -> Self
pub fn set_operation_groups<T, V>(self, v: T) -> Self
Sets the value of operation_groups.
§Example
ⓘ
use google_cloud_recommender_v1::model::OperationGroup;
let x = RecommendationContent::new()
.set_operation_groups([
OperationGroup::default()/* use setters */,
OperationGroup::default()/* use (different) setters */,
]);Sourcepub fn set_overview<T>(self, v: T) -> Self
pub fn set_overview<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_overview<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_overview<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RecommendationContent
impl Clone for RecommendationContent
Source§fn clone(&self) -> RecommendationContent
fn clone(&self) -> RecommendationContent
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 RecommendationContent
impl Debug for RecommendationContent
Source§impl Default for RecommendationContent
impl Default for RecommendationContent
Source§fn default() -> RecommendationContent
fn default() -> RecommendationContent
Returns the “default value” for a type. Read more
Source§impl Message for RecommendationContent
impl Message for RecommendationContent
Source§impl PartialEq for RecommendationContent
impl PartialEq for RecommendationContent
impl StructuralPartialEq for RecommendationContent
Auto Trait Implementations§
impl Freeze for RecommendationContent
impl RefUnwindSafe for RecommendationContent
impl Send for RecommendationContent
impl Sync for RecommendationContent
impl Unpin for RecommendationContent
impl UnsafeUnpin for RecommendationContent
impl UnwindSafe for RecommendationContent
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