#[non_exhaustive]pub struct ImportMappingRulesRequest {
pub parent: String,
pub rules_format: ImportRulesFileFormat,
pub rules_files: Vec<RulesFile>,
pub auto_commit: bool,
/* private fields */
}Expand description
Request message for ‘ImportMappingRules’ request.
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. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
rules_format: ImportRulesFileFormatRequired. The format of the rules content file.
rules_files: Vec<RulesFile>Required. One or more rules files.
auto_commit: boolRequired. Should the conversion workspace be committed automatically after the import operation.
Implementations§
Source§impl ImportMappingRulesRequest
impl ImportMappingRulesRequest
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_rules_format<T: Into<ImportRulesFileFormat>>(self, v: T) -> Self
pub fn set_rules_format<T: Into<ImportRulesFileFormat>>(self, v: T) -> Self
Sets the value of rules_format.
Sourcepub fn set_rules_files<T, V>(self, v: T) -> Self
pub fn set_rules_files<T, V>(self, v: T) -> Self
Sets the value of rules_files.
Sourcepub fn set_auto_commit<T: Into<bool>>(self, v: T) -> Self
pub fn set_auto_commit<T: Into<bool>>(self, v: T) -> Self
Sets the value of auto_commit.
Trait Implementations§
Source§impl Clone for ImportMappingRulesRequest
impl Clone for ImportMappingRulesRequest
Source§fn clone(&self) -> ImportMappingRulesRequest
fn clone(&self) -> ImportMappingRulesRequest
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 ImportMappingRulesRequest
impl Debug for ImportMappingRulesRequest
Source§impl Default for ImportMappingRulesRequest
impl Default for ImportMappingRulesRequest
Source§fn default() -> ImportMappingRulesRequest
fn default() -> ImportMappingRulesRequest
Returns the “default value” for a type. Read more
Source§impl Message for ImportMappingRulesRequest
impl Message for ImportMappingRulesRequest
impl StructuralPartialEq for ImportMappingRulesRequest
Auto Trait Implementations§
impl Freeze for ImportMappingRulesRequest
impl RefUnwindSafe for ImportMappingRulesRequest
impl Send for ImportMappingRulesRequest
impl Sync for ImportMappingRulesRequest
impl Unpin for ImportMappingRulesRequest
impl UnwindSafe for ImportMappingRulesRequest
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