#[non_exhaustive]pub struct ApplyConversionWorkspaceRequest {
pub name: String,
pub filter: String,
pub dry_run: bool,
pub auto_commit: bool,
pub destination: Option<Destination>,
/* private fields */
}Expand description
Request message for ‘ApplyConversionWorkspace’ request.
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.name: StringRequired. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
filter: StringFilter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.
dry_run: boolOptional. Only validates the apply process, but doesn’t change the destination database. Only works for PostgreSQL destination connection profile.
auto_commit: boolOptional. Specifies whether the conversion workspace is to be committed automatically after the apply.
destination: Option<Destination>Which destination to use when applying the conversion workspace.
Implementations§
Source§impl ApplyConversionWorkspaceRequest
impl ApplyConversionWorkspaceRequest
pub fn new() -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_dry_run<T: Into<bool>>(self, v: T) -> Self
pub fn set_dry_run<T: Into<bool>>(self, v: T) -> Self
Sets the value of dry_run.
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.
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
Sourcepub fn connection_profile(&self) -> Option<&String>
pub fn connection_profile(&self) -> Option<&String>
The value of destination
if it holds a ConnectionProfile, None if the field is not set or
holds a different branch.
Sourcepub fn set_connection_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_connection_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of destination
to hold a ConnectionProfile.
Note that all the setters affecting destination are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ApplyConversionWorkspaceRequest
impl Clone for ApplyConversionWorkspaceRequest
Source§fn clone(&self) -> ApplyConversionWorkspaceRequest
fn clone(&self) -> ApplyConversionWorkspaceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ApplyConversionWorkspaceRequest
impl Default for ApplyConversionWorkspaceRequest
Source§fn default() -> ApplyConversionWorkspaceRequest
fn default() -> ApplyConversionWorkspaceRequest
Source§impl PartialEq for ApplyConversionWorkspaceRequest
impl PartialEq for ApplyConversionWorkspaceRequest
Source§fn eq(&self, other: &ApplyConversionWorkspaceRequest) -> bool
fn eq(&self, other: &ApplyConversionWorkspaceRequest) -> bool
self and other values to be equal, and is used by ==.