#[non_exhaustive]pub struct SeedConversionWorkspaceRequest {
pub name: String,
pub auto_commit: bool,
pub seed_from: Option<SeedFrom>,
/* private fields */
}Expand description
Request message for ‘SeedConversionWorkspace’ 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: StringName of the conversion workspace resource to seed with new database structure, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
auto_commit: boolShould the conversion workspace be committed automatically after the seed operation.
seed_from: Option<SeedFrom>The input to be used for seeding the conversion workspace. The input can either be from the source or destination databases and it can be provided through a connection profile or a DDL file.
Implementations§
Source§impl SeedConversionWorkspaceRequest
impl SeedConversionWorkspaceRequest
pub fn new() -> Self
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_seed_from<T: Into<Option<SeedFrom>>>(self, v: T) -> Self
pub fn set_seed_from<T: Into<Option<SeedFrom>>>(self, v: T) -> Self
Sets the value of seed_from.
Note that all the setters affecting seed_from are mutually
exclusive.
Sourcepub fn source_connection_profile(&self) -> Option<&String>
pub fn source_connection_profile(&self) -> Option<&String>
The value of seed_from
if it holds a SourceConnectionProfile, None if the field is not set or
holds a different branch.
Sourcepub fn set_source_connection_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_source_connection_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of seed_from
to hold a SourceConnectionProfile.
Note that all the setters affecting seed_from are
mutually exclusive.
Sourcepub fn destination_connection_profile(&self) -> Option<&String>
pub fn destination_connection_profile(&self) -> Option<&String>
The value of seed_from
if it holds a DestinationConnectionProfile, None if the field is not set or
holds a different branch.
Sourcepub fn set_destination_connection_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_connection_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of seed_from
to hold a DestinationConnectionProfile.
Note that all the setters affecting seed_from are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SeedConversionWorkspaceRequest
impl Clone for SeedConversionWorkspaceRequest
Source§fn clone(&self) -> SeedConversionWorkspaceRequest
fn clone(&self) -> SeedConversionWorkspaceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SeedConversionWorkspaceRequest
impl Default for SeedConversionWorkspaceRequest
Source§fn default() -> SeedConversionWorkspaceRequest
fn default() -> SeedConversionWorkspaceRequest
Source§impl PartialEq for SeedConversionWorkspaceRequest
impl PartialEq for SeedConversionWorkspaceRequest
Source§fn eq(&self, other: &SeedConversionWorkspaceRequest) -> bool
fn eq(&self, other: &SeedConversionWorkspaceRequest) -> bool
self and other values to be equal, and is used by ==.