#[non_exhaustive]pub struct CreateInsightsConfigRequest {
pub parent: String,
pub insights_config_id: String,
pub insights_config: Option<InsightsConfig>,
pub validate_only: bool,
/* private fields */
}Expand description
Request for creating an InsightsConfig.
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.parent: StringRequired. Value for parent.
insights_config_id: StringRequired. ID of the requesting InsightsConfig.
insights_config: Option<InsightsConfig>Required. The resource being created.
validate_only: boolOptional. If set, validate the request, but do not actually post it.
Implementations§
Source§impl CreateInsightsConfigRequest
impl CreateInsightsConfigRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_insights_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_insights_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of insights_config_id.
Sourcepub fn set_insights_config<T>(self, v: T) -> Selfwhere
T: Into<InsightsConfig>,
pub fn set_insights_config<T>(self, v: T) -> Selfwhere
T: Into<InsightsConfig>,
Sets the value of insights_config.
Sourcepub fn set_or_clear_insights_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InsightsConfig>,
pub fn set_or_clear_insights_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InsightsConfig>,
Sets or clears the value of insights_config.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateInsightsConfigRequest
impl Clone for CreateInsightsConfigRequest
Source§fn clone(&self) -> CreateInsightsConfigRequest
fn clone(&self) -> CreateInsightsConfigRequest
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 CreateInsightsConfigRequest
impl Debug for CreateInsightsConfigRequest
Source§impl Default for CreateInsightsConfigRequest
impl Default for CreateInsightsConfigRequest
Source§fn default() -> CreateInsightsConfigRequest
fn default() -> CreateInsightsConfigRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateInsightsConfigRequest
Auto Trait Implementations§
impl Freeze for CreateInsightsConfigRequest
impl RefUnwindSafe for CreateInsightsConfigRequest
impl Send for CreateInsightsConfigRequest
impl Sync for CreateInsightsConfigRequest
impl Unpin for CreateInsightsConfigRequest
impl UnwindSafe for CreateInsightsConfigRequest
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