#[non_exhaustive]pub struct ConversionWorkspace {
pub name: String,
pub source: Option<DatabaseEngineInfo>,
pub destination: Option<DatabaseEngineInfo>,
pub global_settings: HashMap<String, String>,
pub has_uncommitted_changes: bool,
pub latest_commit_id: String,
pub latest_commit_time: Option<Timestamp>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub display_name: String,
/* private fields */
}Expand description
The main conversion workspace resource entity.
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: StringFull name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
source: Option<DatabaseEngineInfo>Required. The source engine details.
destination: Option<DatabaseEngineInfo>Required. The destination engine details.
global_settings: HashMap<String, String>Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
has_uncommitted_changes: boolOutput only. Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
latest_commit_id: StringOutput only. The latest commit ID.
latest_commit_time: Option<Timestamp>Output only. The timestamp when the workspace was committed.
create_time: Option<Timestamp>Output only. The timestamp when the workspace resource was created.
update_time: Option<Timestamp>Output only. The timestamp when the workspace resource was last updated.
display_name: StringOptional. The display name for the workspace.
Implementations§
Source§impl ConversionWorkspace
impl ConversionWorkspace
pub fn new() -> Self
Sourcepub fn set_source<T>(self, v: T) -> Selfwhere
T: Into<DatabaseEngineInfo>,
pub fn set_source<T>(self, v: T) -> Selfwhere
T: Into<DatabaseEngineInfo>,
Sets the value of source.
Sourcepub fn set_or_clear_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<DatabaseEngineInfo>,
pub fn set_or_clear_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<DatabaseEngineInfo>,
Sets or clears the value of source.
Sourcepub fn set_destination<T>(self, v: T) -> Selfwhere
T: Into<DatabaseEngineInfo>,
pub fn set_destination<T>(self, v: T) -> Selfwhere
T: Into<DatabaseEngineInfo>,
Sets the value of destination.
Sourcepub fn set_or_clear_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<DatabaseEngineInfo>,
pub fn set_or_clear_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<DatabaseEngineInfo>,
Sets or clears the value of destination.
Sourcepub fn set_global_settings<T, K, V>(self, v: T) -> Self
pub fn set_global_settings<T, K, V>(self, v: T) -> Self
Sets the value of global_settings.
Sourcepub fn set_has_uncommitted_changes<T: Into<bool>>(self, v: T) -> Self
pub fn set_has_uncommitted_changes<T: Into<bool>>(self, v: T) -> Self
Sets the value of has_uncommitted_changes.
Sourcepub fn set_latest_commit_id<T: Into<String>>(self, v: T) -> Self
pub fn set_latest_commit_id<T: Into<String>>(self, v: T) -> Self
Sets the value of latest_commit_id.
Sourcepub fn set_latest_commit_time<T>(self, v: T) -> Self
pub fn set_latest_commit_time<T>(self, v: T) -> Self
Sets the value of latest_commit_time.
Sourcepub fn set_or_clear_latest_commit_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_latest_commit_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of latest_commit_time.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Trait Implementations§
Source§impl Clone for ConversionWorkspace
impl Clone for ConversionWorkspace
Source§fn clone(&self) -> ConversionWorkspace
fn clone(&self) -> ConversionWorkspace
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more