#[non_exhaustive]pub struct MigrationSource {
pub host_port: String,
pub reference_id: String,
pub source_type: MigrationSourceType,
/* private fields */
}Expand description
Subset of the source instance configuration that is available when reading the cluster resource.
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.host_port: StringOutput only. The host and port of the on-premises instance in host:port format
reference_id: StringOutput only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.
source_type: MigrationSourceTypeOutput only. Type of migration source.
Implementations§
Source§impl MigrationSource
impl MigrationSource
pub fn new() -> Self
Sourcepub fn set_host_port<T: Into<String>>(self, v: T) -> Self
pub fn set_host_port<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_reference_id<T: Into<String>>(self, v: T) -> Self
pub fn set_reference_id<T: Into<String>>(self, v: T) -> Self
Sets the value of reference_id.
§Example
ⓘ
let x = MigrationSource::new().set_reference_id("example");Sourcepub fn set_source_type<T: Into<MigrationSourceType>>(self, v: T) -> Self
pub fn set_source_type<T: Into<MigrationSourceType>>(self, v: T) -> Self
Sets the value of source_type.
§Example
ⓘ
use google_cloud_alloydb_v1::model::migration_source::MigrationSourceType;
let x0 = MigrationSource::new().set_source_type(MigrationSourceType::Dms);Trait Implementations§
Source§impl Clone for MigrationSource
impl Clone for MigrationSource
Source§fn clone(&self) -> MigrationSource
fn clone(&self) -> MigrationSource
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 MigrationSource
impl Debug for MigrationSource
Source§impl Default for MigrationSource
impl Default for MigrationSource
Source§fn default() -> MigrationSource
fn default() -> MigrationSource
Returns the “default value” for a type. Read more
Source§impl Message for MigrationSource
impl Message for MigrationSource
Source§impl PartialEq for MigrationSource
impl PartialEq for MigrationSource
impl StructuralPartialEq for MigrationSource
Auto Trait Implementations§
impl Freeze for MigrationSource
impl RefUnwindSafe for MigrationSource
impl Send for MigrationSource
impl Sync for MigrationSource
impl Unpin for MigrationSource
impl UnsafeUnpin for MigrationSource
impl UnwindSafe for MigrationSource
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