#[non_exhaustive]pub struct InstallFeaturedContentNativeDashboardRequest {
pub name: String,
pub featured_content_native_dashboard: Option<FeaturedContentNativeDashboard>,
/* private fields */
}Expand description
Request message to install a FeaturedContentNativeDashboard.
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.name: StringRequired. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}
featured_content_native_dashboard: Option<FeaturedContentNativeDashboard>Optional. The FeaturedContentNativeDashboard to install.
Implementations§
Source§impl InstallFeaturedContentNativeDashboardRequest
impl InstallFeaturedContentNativeDashboardRequest
Sourcepub fn set_featured_content_native_dashboard<T>(self, v: T) -> Selfwhere
T: Into<FeaturedContentNativeDashboard>,
pub fn set_featured_content_native_dashboard<T>(self, v: T) -> Selfwhere
T: Into<FeaturedContentNativeDashboard>,
Sets the value of featured_content_native_dashboard.
§Example
ⓘ
use google_cloud_chronicle_v1::model::FeaturedContentNativeDashboard;
let x = InstallFeaturedContentNativeDashboardRequest::new().set_featured_content_native_dashboard(FeaturedContentNativeDashboard::default()/* use setters */);Sourcepub fn set_or_clear_featured_content_native_dashboard<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<FeaturedContentNativeDashboard>,
pub fn set_or_clear_featured_content_native_dashboard<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<FeaturedContentNativeDashboard>,
Sets or clears the value of featured_content_native_dashboard.
§Example
ⓘ
use google_cloud_chronicle_v1::model::FeaturedContentNativeDashboard;
let x = InstallFeaturedContentNativeDashboardRequest::new().set_or_clear_featured_content_native_dashboard(Some(FeaturedContentNativeDashboard::default()/* use setters */));
let x = InstallFeaturedContentNativeDashboardRequest::new().set_or_clear_featured_content_native_dashboard(None::<FeaturedContentNativeDashboard>);Trait Implementations§
Source§impl Clone for InstallFeaturedContentNativeDashboardRequest
impl Clone for InstallFeaturedContentNativeDashboardRequest
Source§fn clone(&self) -> InstallFeaturedContentNativeDashboardRequest
fn clone(&self) -> InstallFeaturedContentNativeDashboardRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InstallFeaturedContentNativeDashboardRequest
impl Default for InstallFeaturedContentNativeDashboardRequest
Source§fn default() -> InstallFeaturedContentNativeDashboardRequest
fn default() -> InstallFeaturedContentNativeDashboardRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstallFeaturedContentNativeDashboardRequest
impl PartialEq for InstallFeaturedContentNativeDashboardRequest
Source§fn eq(&self, other: &InstallFeaturedContentNativeDashboardRequest) -> bool
fn eq(&self, other: &InstallFeaturedContentNativeDashboardRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstallFeaturedContentNativeDashboardRequest
Auto Trait Implementations§
impl Freeze for InstallFeaturedContentNativeDashboardRequest
impl RefUnwindSafe for InstallFeaturedContentNativeDashboardRequest
impl Send for InstallFeaturedContentNativeDashboardRequest
impl Sync for InstallFeaturedContentNativeDashboardRequest
impl Unpin for InstallFeaturedContentNativeDashboardRequest
impl UnsafeUnpin for InstallFeaturedContentNativeDashboardRequest
impl UnwindSafe for InstallFeaturedContentNativeDashboardRequest
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