#[non_exhaustive]pub struct CreateMappingRuleRequest {
pub parent: String,
pub mapping_rule_id: String,
pub mapping_rule: Option<MappingRule>,
pub request_id: String,
/* private fields */
}Expand description
Request message for ‘CreateMappingRule’ command.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent which owns this collection of mapping rules.
mapping_rule_id: StringRequired. The ID of the rule to create.
mapping_rule: Option<MappingRule>Required. Represents a [mapping rule] (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules) object.
request_id: StringA unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.
It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Implementations§
Source§impl CreateMappingRuleRequest
impl CreateMappingRuleRequest
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_mapping_rule_id<T: Into<String>>(self, v: T) -> Self
pub fn set_mapping_rule_id<T: Into<String>>(self, v: T) -> Self
Sets the value of mapping_rule_id.
Sourcepub fn set_mapping_rule<T>(self, v: T) -> Selfwhere
T: Into<MappingRule>,
pub fn set_mapping_rule<T>(self, v: T) -> Selfwhere
T: Into<MappingRule>,
Sets the value of mapping_rule.
Sourcepub fn set_or_clear_mapping_rule<T>(self, v: Option<T>) -> Selfwhere
T: Into<MappingRule>,
pub fn set_or_clear_mapping_rule<T>(self, v: Option<T>) -> Selfwhere
T: Into<MappingRule>,
Sets or clears the value of mapping_rule.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for CreateMappingRuleRequest
impl Clone for CreateMappingRuleRequest
Source§fn clone(&self) -> CreateMappingRuleRequest
fn clone(&self) -> CreateMappingRuleRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more